creating live usb image for 3.2.1

160 views
Skip to first unread message

r0ller

unread,
Apr 23, 2013, 10:40:43 AM4/23/13
to min...@googlegroups.com
Hi All,
 
I tried to create a live usb image by executing:
 
./release.sh -u -c -f usb_image-3.2.1
 
Unfortunately, it failed with the stuff below. Does anyone have any remedy to this?
 
Thanks&regards,
r0ller
 
 * Making live USB-stick image
 * Copying, not using GIT
Retrieving packages form ftp://ftp.minix3.org/pub/minix/packages/3.2.1/i686/All/
pkg_summary.bz2                              
pkg_summary.bz2                                 0% of   48 kB ?? Bps
pkg_summary.bz2                                 8% of   48 kB ?? Bps
pkg_summary.bz2                                16% of   48 kB ?? Bps
pkg_summary.bz2                                24% of   48 kB ?? Bps
pkg_summary.bz2                                33% of   48 kB ?? Bps
pkg_summary.bz2                                41% of   48 kB 1199 kBps
pkg_summary.bz2                                49% of   48 kB 1439 kBps
pkg_summary.bz2                                58% of   48 kB 1679 kBps
pkg_summary.bz2                                66% of   48 kB 1919 kBps
pkg_summary.bz2                                74% of   48 kB 2159 kBps
pkg_summary.bz2                                83% of   48 kB 2399 kBps
pkg_summary.bz2                                91% of   48 kB 2639 kBps
pkg_summary.bz2                                99% of   48 kB 2879 kBps
pkg_summary.bz2                               100% of   48 kB 2889 kBps        2889 kB 2889 kBps
Getting 9e-1.0
.Getting apr-1.4.5
.Getting apr-util-1.3.12nb1
.Getting autoconf-2.68nb2
.Getting automake-1.11.1nb1
.Getting bash-2.05.2.7nb11
.Getting bash-4.2nb1
.Getting bchunk-1.2.0
.Getting bcrypt-1.1
.Getting binutils-2.17nb3
.Getting bison-2.5nb1
.Getting curl-7.21.7
.Getting diffutils-2.8.1nb5
.Getting digest-20080510
.Getting expat-2.0.1nb2
.Getting f2c-20100903
.Getting figlet-2.2.4
.Getting flex-2.5.35nb2
.Getting gawk-3.1.8nb1
.Getting gettext-lib-0.18.1.1
.Getting gettext-tools-0.18.1.1nb2
.Getting gmake-3.82nb2
.Getting gmp-5.0.2
.Getting grep-2.5.3nb1
.Getting gsed-4.2.1nb1
.Getting gtexinfo-4.13nb1
.Getting gzip-1.3.12nb3
.Getting lcov-1.9
.Getting libiberty-1.0nb2
.Getting libiconv-1.14nb2
.Getting libidn-1.22
.Getting libtool-base-2.2.6bnb5
.Getting lua-5.1.4nb3
.Getting m4-1.4.16
.Getting mdf2iso-0.3.0
.Getting mpfr-3.0.1.3
.Getting naim-0.11.8.3.1
.Getting nano-2.2.4nb1
.Getting nawk-20050424nb3
.Getting ncurses-5.9
.Getting neon-0.29.3nb1
.Getting netdrv_tg3-1.0
.Getting openssh-5.8.2nb5
.Getting openssl-0.9.8qnb3
.Getting p5-Digest-SHA1-2.13nb2
.Getting p5-Error-0.17016nb2
.Getting p5-enum-1.016nb3
.Getting p5-pkgsrc-Dewey-1.1nb2
.Getting patch-2.5.9
.Getting pax-20080110
.Getting pdksh-5.2.14nb5
.Getting perl-5.14.2
.Getting pkg-config-0.25nb1
.Getting pkg_install-info-4.5nb3
.Getting pkg_leaves-1.2
.Getting pkgdep-1.0
.Getting pkgdepgraph-2.8
.Getting pkgdiff-1.3
.Getting pkglint-4.103
.Getting png-1.5.5
.Getting pth-2.0.7nb2
.Getting readline-6.2
.Getting rsync-3.0.9
.Getting scmgit-base-1.7.7
.Getting sqlite3-3.7.8
.Getting unzip-6.0
.Getting url2pkg-2.13
.Getting vim-7.2.446nb1
.Getting vim-share-7.2.446
.Getting zip-3.0nb2
.done
 * Cleanup old files
umount: Device not mounted
umount: Device not mounted
umount: no such file or directory
umount: Not a mountpoint
 * Bootstrapping filesystem in /usr/r-staging
 * Transfering /usr/pkgsrc/packages/3.2.1/i686 to /usr/r-staging/usr/install/packages
First cleaning current sourcedir..
Copying contents from current src dir.
Copying done.
 * Pre-installing: pkg_install from ftp://ftp.minix3.org/pub/minix/packages/3.2.1/i686/All/
pkg_add: Can't process ftp://ftp.minix3.org/pub/minix/packages/3.2.1/i686/All//pkg*: Protocol error
pkg_add: no pkg found for 'ftp://ftp.minix3.org/pub/minix/packages/3.2.1/i686/All//pkg_install', sorry.
pkg_add: 1 package addition failed

r0ller

unread,
Apr 24, 2013, 4:45:39 AM4/24/13
to min...@googlegroups.com
Hi All,
 
Actually, it turned out to be a problem with my http_proxy env.var... So finally it worked and I have the iso file bz2-ed which I extracted to get the iso. After that it came into my mind, that minix3.2.1 supports usb mass storages by ddekit as described in the release notes. So I installed dde-linux26 from pkgsrc/minix/. Then I tried to install dde-linux26-usb-drivers but I got the errors below. Could anyone tell me what to do now so that I can test the usb support by writing the iso I have to my usb key using dd? Definitely, the first thing is to get usb drivers installed which failed with the errors below. Thanks for your help in advance!
 
Regards,
r0ller
 
=> Bootstrap dependency digest>=20010302: found digest-20121220
===> Building for dde-linux26-usb-drivers-23
all ===> usbd
all ===> usbd/build
all ===> usb_hid
all ===> usb_hid/build
all ===> usb_storage
all ===> usb_storage/build
gcc -Wno-error -march=i586 -I/usr/pkg/include -I/usr/pkg/gcc44/include -I/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/include -I../include -I../../contrib/drivers/usb/core -I../../contrib/drivers/scsi -I/usr/pkg/include/ddelinux26/include/ -I/usr/pkg/include/ddelinux26/include/dde/linux26 -I/usr/pkg/include/ddelinux26/contrib/include -I/usr/pkg/include/ddelinux26/contrib/arch/x86/include -I/usr/pkg/include/ddelinux26/contrib/arch/x86/include/asm/mach-generic -I/usr/pkg/include/ddelinux26/contrib/arch/x86/include/asm/mach-default -I/usr/include   -D_NETBSD_SOURCE -D_POSIX_SOURCE -D_COMPAT_MINIX -I/usr/pkg/include -I/usr/pkg/gcc44/include -I/usr/pkg/gcc44/lib/gcc/i386-pc-minix/4.4.6/include -Wall -include linux/autoconf.h -include ddefines.h -ffunction-sections -fdata-sections -fno-strict-aliasing -c    ../src/dde_drive.c -o dde_drive.o
../src/dde_drive.c:53: warning: 'struct partition' declared inside parameter list
../src/dde_drive.c:53: warning: its scope is only this definition or declaration, which is probably not what you want
../src/dde_drive.c:65: warning: initialization from incompatible pointer type
../src/dde_drive.c:78: warning: 'struct partition' declared inside parameter list
../src/dde_drive.c:78: error: conflicting types for 'dde_block_geometry'
../src/dde_drive.c:52: note: previous declaration of 'dde_block_geometry' was here
../src/dde_drive.c: In function 'dde_block_geometry':
../src/dde_drive.c:90: error: dereferencing pointer to incomplete type
../src/dde_drive.c:91: error: dereferencing pointer to incomplete type
../src/dde_drive.c:92: error: dereferencing pointer to incomplete type
../src/dde_drive.c:94: error: dereferencing pointer to incomplete type
../src/dde_drive.c:95: error: dereferencing pointer to incomplete type
../src/dde_drive.c:96: error: dereferencing pointer to incomplete type
../src/dde_drive.c: In function 'dde_block_open':
../src/dde_drive.c:126: warning: implicit declaration of function 'ddekit_bd_get_sectorcount'
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/work/minix/dde-linux26-usb-drivers/work/dde-linux26-usb-drivers-23/usb_storage/build
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/work/minix/dde-linux26-usb-drivers/work/dde-linux26-usb-drivers-23/usb_storage
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/work/minix/dde-linux26-usb-drivers/work/dde-linux26-usb-drivers-23
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/minix/dde-linux26-usb-drivers
*** Error code 1
Stop.
bmake: stopped in /usr/pkgsrc/minix/dde-linux26-usb-drivers

D.C. van Moolenbroek

unread,
Apr 24, 2013, 4:50:01 AM4/24/13
to min...@googlegroups.com
Hi,


On Wednesday, April 24, 2013 10:45:39 AM UTC+2, r0ller wrote:
Then I tried to install dde-linux26-usb-drivers but I got the errors below.
 
../src/dde_drive.c:53: warning: 'struct partition' declared inside parameter list
 
The ddekit source is slightly out of sync with minix-head; "struct partition" is called "struct part_geom" these days. This.. will be fixed.. I'm sure.

Could anyone tell me what to do now so that I can test the usb support by writing the iso I have to my usb key using dd?

Booting from USB is not supported at all at this time.

Regards,
David

r0ller

unread,
Apr 24, 2013, 4:57:04 AM4/24/13
to min...@googlegroups.com
Hi David,
 

>The ddekit source is slightly out of sync with minix-head; "struct partition" is called "struct part_geom" these days. This.. will be fixed.. I'm sure.
 
Great! Thanks! When shall I expect it?


>Booting from USB is not supported at all at this time.

:( Why isn't it possible again? It got fixed in 3.1.8. When do you think it'll work again?
 
Thanks&regards,
r0ller

D.C. van Moolenbroek

unread,
Apr 24, 2013, 5:04:25 AM4/24/13
to min...@googlegroups.com
Hi,


On Wednesday, April 24, 2013 10:57:04 AM UTC+2, r0ller wrote:
>The ddekit source is slightly out of sync with minix-head; "struct partition" is called "struct part_geom" these days. This.. will be fixed.. I'm sure.
 
Great! Thanks! When shall I expect it?

No ETA. It's a trivial change though.
 
>Booting from USB is not supported at all at this time.

:( Why isn't it possible again? It got fixed in 3.1.8. When do you think it'll work again?

Previous MINIX versions "supported" USB booting by using BIOS calls. This is no longer possible due to our switch to the NetBSD bootloader. Instead, native USB booting support would have to be added now. Again, no ETA, but this is a much larger effort.

Regards,
David

r0ller

unread,
Apr 24, 2013, 5:16:08 AM4/24/13
to min...@googlegroups.com
Hi David,
 
>The ddekit source is slightly out of sync with minix-head; "struct partition" is called "struct part_geom" these days. This.. will be fixed.. I'm sure.
 
Great! Thanks! When shall I expect it?

No ETA. It's a trivial change though.
 
Sure:) I'll fix it for the time being locally. Just wanted to know when it becomes generally available.
 
 
>Booting from USB is not supported at all at this time.

:( Why isn't it possible again? It got fixed in 3.1.8. When do you think it'll work again?

Previous MINIX versions "supported" USB booting by using BIOS calls. This is no longer possible due to our switch to the NetBSD bootloader. Instead, native USB booting support would have to be added now. Again, no ETA, but this is a much larger effort.
 
:( That's not for me. I'm not a system developer...
 
Regards,
r0ller

Antoine LECA

unread,
Apr 24, 2013, 5:38:29 AM4/24/13
to min...@googlegroups.com
D.C. van Moolenbroek wrote:
> The ddekit source is slightly out of sync with minix-head; "struct
> partition" is called "struct part_geom" these days. This.. will be fixed..

Isn't it fixed in "release 24" as in "dde-linux26-usb-drivers-24"?

http://git.minix3.org/?p=pkgsrc.git;a=commitdiff;h=20c92d11


Antoine

D.C. van Moolenbroek

unread,
Apr 24, 2013, 5:50:26 AM4/24/13
to min...@googlegroups.com
Hey,


On Wednesday, April 24, 2013 11:38:29 AM UTC+2, AntoineLeca wrote:
D.C. van Moolenbroek wrote:
> The ddekit source is slightly out of sync with minix-head; "struct
> partition" is called "struct part_geom" these days. This.. will be fixed..

Isn't it fixed in "release 24" as in "dde-linux26-usb-drivers-24"?
 
Oh! Well it looks like I'm the one that is out of sync then. Thanks Antoine (and Kees, for the fix) :)

Regards,
David

r0ller

unread,
Apr 24, 2013, 7:26:00 AM4/24/13
to min...@googlegroups.com
Hi All,
 
Well, it seems that I'm out of sync too but at least I managed to fix it locally:)

r0ller

unread,
Apr 24, 2013, 8:52:13 AM4/24/13
to min...@googlegroups.com
Hi All,
 
Another question is how to mount a usb key? I tried (taking the case when a fat32 key got hooked on /dev/usb_disk9) 'mount -t vfat /dev/usb_disk9 /mnt' which resulted in: 'mount: Can't mount /dev/usb_disk9 on /mnt/: invalid argument'. If I simply try: 'mount /dev/usb_disk9 /mnt' then I get:
 
PANIC:
BUG(): ../../lib/src/fs/buffer.c:2257usb_storage(109712): panic:
syslib:panic.c: stacktrace: 0x.... (many more hexa)
mount cannot open /dev/usb_disk9: input/output error
disk <sda> not found
mount: Can't mount /dev/usb_disk9 on /mnt/: invalid argument
 
Any ideas on how to fix it?
 
Thanks&regards,
r0ller

Antoine LECA

unread,
Apr 24, 2013, 9:42:11 AM4/24/13
to min...@googlegroups.com
r0ller wrote:
> Any ideas on how to fix it?

The "fix" is to write a vfat filesystem service.

Do not hold your breath though.


Antoine

r0ller

unread,
Apr 24, 2013, 9:57:18 AM4/24/13
to min...@googlegroups.com
Hi Antoine,
 
Ok, I reformatted the stick with ntfs on windoze. Then I get the same panic if I just mount it like 'mount /dev/usb_diskX /mnt'. If I mount it like 'mount -t hgfs /dev/usb_diskX /mnt' I get the vmware sharedfolder mounted in /mnt:) Is there any other possibility?
 
Thanks&regards,
r0ller

Antoine LECA

unread,
Apr 24, 2013, 10:46:08 AM4/24/13
to min...@googlegroups.com
r0ller wrote:
> Ok, I reformatted the stick with ntfs on windoze. Then I get the same panic
> if I just mount it like 'mount /dev/usb_diskX /mnt'.

MINIX mount(8) only guesses MinixFS and ext2fs, I do not believe it is
educated enough to know about NTFS; so you need to ask kindly
mount -t ntfs-3g /dev/jfdhskjfhadskjfh /mnt

(and of course to make sure ntfs-3g package is properly installed)

Please report if it went well!


Antoine

r0ller

unread,
Apr 24, 2013, 4:01:35 PM4/24/13
to min...@googlegroups.com
Hi Antoine,
 
Well, not really:( I installed fuse-ntfs-3g from pkgsrc easily but when mounting as suggested, I get a similar panic:
 
PANIC:
BUG(): ../../lib/src/fs/buffer.c:2257usb_storage(73147): panic:
syslib:panic.c: stacktrace: 0x.... (many more hexa)
Error opening partition device: input/output error
Failed to mount /dev/usb_disk5: input/output error
NTFS is either inconsistent, or you have hardware faults, or you have a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows TWICE. The usage of the /f parameter is very
important! If you have SoftRAID/FakeRAID then first you must activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for the details.
RS: file servers cannot be restarted yet (error -38)
Request 0x701 to RS failed: no such process (error 3)
mount: Can't mount /dev/usb_disk5 on /mnt/: input/output error
 
Regards,
r0ller
Reply all
Reply to author
Forward
0 new messages