Re: [leaf-devel] flash usb
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jørn Eriksen wrote: > Hello Everyone, > > I found this doing a little search: > http://www.mega-tokyo.com/osfaq2/index.php/Disk%20Images%20Under%20Linux > So - I wonder - can we just use whatever geomoetry we like with a USB disk? I believe so. As mentioned before, the concept of CHS is quite dated, and hasn't truly reflected what's physically on the disk since pretty much the advent of IDE back in (thinking...) the late 80's, early 90's? AFAIK, as long as the partition table is valid for how the disk is formatted, everything should be fine (at least for those filesystems that actually *USE* CHS info in their internal structurs...many don't, and just use logical block numbering as has been the standard on SCSI drives since roughly the dawn of time :). What I would do to make an image: Use dd to create an appropriately sized blank file (perhaps 4-8 Meg). Mount the filesystem as a loop-back device. Partition the lo device with an HDD partition table (4 main partitions). Create a bootable partition in the first primary parition. Install LRP files from an appropriate image Install desired boot loader (I'm partial to grub for this sort of thing, and it would allow using EXT3, but syslinux, lilo, or most anything should work as well). dd the image to a USB dongle. Test, then ship (or is that ship, then test...I always forget! :). I'm going to try to test the image floating around, but have been fairly short on time lately. - -- Charles Steinkuehler [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFEJzeGLywbqEHdNFwRAqRNAJ42JzAvbfOvK2A1mBolHq6r/ya2eQCeIlH6 tfPpC1ZeYeY258e2L4y9V0M= =+ASE -END PGP SIGNATURE- --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ leaf-devel mailing list leaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-devel
Re: [leaf-devel] flash usb
Eric & All, I think we sort of agree - it's just the way there we walk differetly :-) I'll try to add the VFAT module to the initrd_u when I get back home. Just to see how that work out. More for my own curiousity than anything else. I've ordered a 256Mb Stick as well. When that stick arrive I'll also note down the pysical geometry of all my sticks to see if the match up. If they do, I'll go ahead and see if I can create an generic image for the sticks. If that works OK I guess a "small" change to the create scripts can fix it all. Jorn - > Hello Jorn, > >> Hello All, >> >> >> I belive, as well, that this should be possible, however we have to make >> sure we build an image that have the same "physial" properties as a USB >> HDD. Not my speciality this however I can sacrifice one of my stick to >> give it a go using Andreas suggestion with a loopback file system. I've >> tried this with CF drives with mixed success in the past thus I would >> like to be possitivle supprised this time :-) >> > That was the same idea I had, but I don't know enough about USB sticks to > be sure about it ;-) > >> I have, as mentioned, taken the CD ISO as a starting point and thus >> making it easy for "users" (of the image) to change it into whatever >> they >> need. My focus has not been on a small footprint, but rather get the >> full >> monty on the stick. Should we focus on as small as possible, or the >> more >> "standard" packages the better? I had a hard time finding a stick >> smaller that 64Mb and since the CD image take about 31Mb we have space >> "enough" >> for all the packages that are on the CD. >> > Agree with that, but using the CD image has a few drawbacks. The modules, > which are available on the CD-image, get truncated. Also some other > packages with "long" names, like initrd_usb.lrp or initrd_ide_cd.lrp get > truncated (they are meant to be renamed to initrd.lrp when used). > But it's no problem to make a specific image for USB which still contains > all packages without the individual modules and redundant packages. The > image scripts can take care of that. > > I think we can focus on putting all packages on the stick, they can easy > be "enabled" by setting them in leaf.cfg or removed by the user when not > needed. And like you say, it's difficult to find a stick smaller than 64Mb > ;-) > >> Jorn >> > Eric > >> >>> Eric Spakman wrote: >>> >>> Hello Andrea, Also a question, is it possible to create an image without using a physical device? This way it's easier to use the image create scripts the Bering-uClibc team uses to create floppy and CD images to also be used for USB images. >>> >>> Well, I think yes. I think is feasible as buildpacket.pl does to >>> create an inirtd image, something like: >>> >>> dd if=/dev/zero of=some to create space >>> >>> and then run mksomefs etc. >>> >>> Of course we should decide for a default size, and/or ask someway as >>> parameter. >>> >>> Regards, >>> Andrea Fino >>> >>> >>> -- >>> Andrea Fino 8-) - "Sistemi su misura di qualita' industriale" >>> "Handcrafted systems with industrial quality" >>> [Web: http://www.faino.org ]+[Email: [EMAIL PROTECTED] ] >>> >>> >>> >>> >>> --- >>> This SF.Net email is sponsored by xPML, a groundbreaking scripting >>> language that extends applications into web and mobile media. Attend >>> the >>> live webcast and join the prime developer group breaking into this new >>> coding territory! >>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=12164 >>> 2 >>> >>> >>> ___ >>> leaf-devel mailing list leaf-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/leaf-devel >>> >>> >>> >> >> >> >> >> --- >> This SF.Net email is sponsored by xPML, a groundbreaking scripting >> language that extends applications into web and mobile media. Attend the >> live webcast and join the prime developer group breaking into this new >> coding territory! >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 >> >> >> ___ >> leaf-devel mailing list leaf-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/leaf-devel >> >> > > > > > --- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > ___ > leaf-devel mailing list > leaf-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/leaf-devel > > ---
Re: [leaf-devel] flash usb
Hello Everyone, I found this doing a little search: http://www.mega-tokyo.com/osfaq2/index.php/Disk%20Images%20Under%20Linux So - I wonder - can we just use whatever geomoetry we like with a USB disk? I saw some comments about this a bit ealier on the list. It's going to be a fun test :-) J --- > Hello Andrea, > >>> >>> Also a question, is it possible to create an image without using a >>> physical device? This way it's easier to use the image create scripts >>> the Bering-uClibc team uses to create floppy and CD images to also be >>> used for USB images. >>> >> >> Well, I think yes. I think is feasible as buildpacket.pl does to >> create an inirtd image, something like: >> >> dd if=/dev/zero of=some to create space >> >> and then run mksomefs etc. >> > The Bering-uClibc team has scripts that do something like that for Floppy > and ISO images and also collect the packages from CVS, would be great if > the same method would also work for USB. > http://cvs.sourceforge.net/viewcvs.py/leaf/src/bering-uclibc/buildtool/tools/ > > The createimage.sh and prepareimagefiles.sh take care of that. > >> Of course we should decide for a default size, and/or ask someway as >> parameter. >> > I think something like 64Mbyte should do, it's more than enough for all > packages. > >> Regards, >> Andrea Fino >> >> >> -- >> Andrea Fino 8-) - "Sistemi su misura di qualita' industriale" >> "Handcrafted systems with industrial quality" >> [Web: http://www.faino.org ]+[Email: [EMAIL PROTECTED] ] >> > > Regards, > Eric > > > > > --- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > ___ > leaf-devel mailing list > leaf-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/leaf-devel > > --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 ___ leaf-devel mailing list leaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-devel
Re: [leaf-devel] flash usb
Hello Jorn, > Hello All, > > > I belive, as well, that this should be possible, however we have to make > sure we build an image that have the same "physial" properties as a USB > HDD. Not my speciality this however I can sacrifice one of my stick to > give it a go using Andreas suggestion with a loopback file system. I've > tried this with CF drives with mixed success in the past thus I would > like to be possitivle supprised this time :-) > That was the same idea I had, but I don't know enough about USB sticks to be sure about it ;-) > I have, as mentioned, taken the CD ISO as a starting point and thus > making it easy for "users" (of the image) to change it into whatever they > need. My focus has not been on a small footprint, but rather get the full > monty on the stick. Should we focus on as small as possible, or the more > "standard" packages the better? I had a hard time finding a stick > smaller that 64Mb and since the CD image take about 31Mb we have space > "enough" > for all the packages that are on the CD. > Agree with that, but using the CD image has a few drawbacks. The modules, which are available on the CD-image, get truncated. Also some other packages with "long" names, like initrd_usb.lrp or initrd_ide_cd.lrp get truncated (they are meant to be renamed to initrd.lrp when used). But it's no problem to make a specific image for USB which still contains all packages without the individual modules and redundant packages. The image scripts can take care of that. I think we can focus on putting all packages on the stick, they can easy be "enabled" by setting them in leaf.cfg or removed by the user when not needed. And like you say, it's difficult to find a stick smaller than 64Mb ;-) > Jorn > Eric > >> Eric Spakman wrote: >> >> >>> Hello Andrea, >>> >>> >>> >>> >>> Also a question, is it possible to create an image without using a >>> physical device? This way it's easier to use the image create scripts >>> the Bering-uClibc team uses to create floppy and CD images to also be >>> used for USB images. >>> >>> >>> >>> >> >> Well, I think yes. I think is feasible as buildpacket.pl does to >> create an inirtd image, something like: >> >> dd if=/dev/zero of=some to create space >> >> and then run mksomefs etc. >> >> Of course we should decide for a default size, and/or ask someway as >> parameter. >> >> Regards, >> Andrea Fino >> >> >> -- >> Andrea Fino 8-) - "Sistemi su misura di qualita' industriale" >> "Handcrafted systems with industrial quality" >> [Web: http://www.faino.org ]+[Email: [EMAIL PROTECTED] ] >> >> >> >> >> --- >> This SF.Net email is sponsored by xPML, a groundbreaking scripting >> language that extends applications into web and mobile media. Attend the >> live webcast and join the prime developer group breaking into this new >> coding territory! >> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=12164 >> 2 >> >> >> ___ >> leaf-devel mailing list leaf-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/leaf-devel >> >> >> > > > > > --- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language that extends applications into web and mobile media. Attend the > live webcast and join the prime developer group breaking into this new > coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 > > > ___ > leaf-devel mailing list leaf-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/leaf-devel > > --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ leaf-devel mailing list leaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-devel
Re: [leaf-devel] flash usb
Hello All, I belive, as well, that this should be possible, however we have to make sure we build an image that have the same "physial" properties as a USB HDD. Not my speciality this however I can sacrifice one of my stick to give it a go using Andreas suggestion with a loopback file system. I've tried this with CF drives with mixed success in the past thus I would like to be possitivle supprised this time :-) I have, as mentioned, taken the CD ISO as a starting point and thus making it easy for "users" (of the image) to change it into whatever they need. My focus has not been on a small footprint, but rather get the full monty on the stick. Should we focus on as small as possible, or the more "standard" packages the better? I had a hard time finding a stick smaller that 64Mb and since the CD image take about 31Mb we have space "enough" for all the packages that are on the CD. Jorn > Eric Spakman wrote: > >>Hello Andrea, >> >> >> >>Also a question, is it possible to create an image without using a >>physical device? This way it's easier to use the image create scripts the >>Bering-uClibc team uses to create floppy and CD images to also be used >> for >>USB images. >> >> >> > > Well, I think yes. I think is feasible as buildpacket.pl does to > create an inirtd image, something like: > > dd if=/dev/zero of=some to create space > > and then run mksomefs etc. > > Of course we should decide for a default size, and/or ask someway as > parameter. > > Regards, > Andrea Fino > > -- > Andrea Fino 8-) - "Sistemi su misura di qualita' industriale" > "Handcrafted systems with industrial quality" > [Web: http://www.faino.org ]+[Email: [EMAIL PROTECTED] ] > > > > --- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language > that extends applications into web and mobile media. Attend the live > webcast > and join the prime developer group breaking into this new coding > territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > ___ > leaf-devel mailing list > leaf-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/leaf-devel > > --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 ___ leaf-devel mailing list leaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-devel
Re: [leaf-devel] flash usb
Hello Andrea, >> >> Also a question, is it possible to create an image without using a >> physical device? This way it's easier to use the image create scripts >> the Bering-uClibc team uses to create floppy and CD images to also be >> used for USB images. >> > > Well, I think yes. I think is feasible as buildpacket.pl does to > create an inirtd image, something like: > > dd if=/dev/zero of=some to create space > > and then run mksomefs etc. > The Bering-uClibc team has scripts that do something like that for Floppy and ISO images and also collect the packages from CVS, would be great if the same method would also work for USB. http://cvs.sourceforge.net/viewcvs.py/leaf/src/bering-uclibc/buildtool/tools/ The createimage.sh and prepareimagefiles.sh take care of that. > Of course we should decide for a default size, and/or ask someway as > parameter. > I think something like 64Mbyte should do, it's more than enough for all packages. > Regards, > Andrea Fino > > > -- > Andrea Fino 8-) - "Sistemi su misura di qualita' industriale" > "Handcrafted systems with industrial quality" > [Web: http://www.faino.org ]+[Email: [EMAIL PROTECTED] ] > Regards, Eric --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ leaf-devel mailing list leaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-devel
Re: [leaf-devel] flash usb
Eric Spakman wrote: Hello Andrea, Also a question, is it possible to create an image without using a physical device? This way it's easier to use the image create scripts the Bering-uClibc team uses to create floppy and CD images to also be used for USB images. Well, I think yes. I think is feasible as buildpacket.pl does to create an inirtd image, something like: dd if=/dev/zero of=some to create space and then run mksomefs etc. Of course we should decide for a default size, and/or ask someway as parameter. Regards, Andrea Fino -- Andrea Fino 8-) - "Sistemi su misura di qualita' industriale" "Handcrafted systems with industrial quality" [Web: http://www.faino.org ]+[Email: [EMAIL PROTECTED] ] --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ leaf-devel mailing list leaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-devel
RE: [leaf-devel] Flash Stick Image
Hello Jorn, The same question to you, do you know a way to create an image without using a physical USB stick? Eric > Mike & All, > > > Here's the URL > http://www.ccl-network.com/leaf/ > > > Best regards > Jørn > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of Mike Noyes > Sent: 23. mars 2006 18:10 > To: leaf-devel@lists.sourceforge.net > Subject: Re: [leaf-devel] Flash Stick Image > > > > On Thu, 2006-03-23 at 07:44, Jorn Eriksen wrote: > >> This is really no big issue - I can just place it on one of my servers >> and give you guys a link. I asked because I thought that it was,sort of >> anyways, smart to have it on the leaf site.. > > Jorn, > The other option, if KP thinks the image is ready, is to release it in > our FRS on SF. > >> I'll send a link in a little while! >> > > Thanks. :-) > > > -- > Mike Noyes > http://sourceforge.net/users/mhnoyes/ > SF.net Projects: leaf, phpwebsite, phpwebsite-comm, sitedocs > > > > > --- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language that extends applications into web and mobile media. Attend the > live webcast and join the prime developer group breaking into this new > coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > > ___ > leaf-devel mailing list leaf-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/leaf-devel > > > > > --- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language that extends applications into web and mobile media. Attend the > live webcast and join the prime developer group breaking into this new > coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 > > > ___ > leaf-devel mailing list leaf-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/leaf-devel > > --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642 ___ leaf-devel mailing list leaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-devel
Re: [leaf-devel] flash usb
Hello Andrea, Good work! A few notes about the image: There are a few unneeded files in the image, like modules_ipv6.lrp (which is a replacment package for modules.lrp) and initrd_ide (which seems to be unpacked also). The syslinux.cfg contains a few entries which could easier be placed in leaf.cfg like: syslinux.cfg: display syslinux.dpy timeout 0 default linux initrd=initrd.lrp init=/linuxrc rw root=/dev/ram0 LEAFCFG=/dev/sda1:msdos leaf.cfg: LRP="root config etc local modules iptables dhcpcd keyboard shorwall ulogd dnsmasq dropbear mhttpd webconf" PKGPATH="/dev/sda1:msdos" syst_size=12M log_size=4M Also a question, is it possible to create an image without using a physical device? This way it's easier to use the image create scripts the Bering-uClibc team uses to create floppy and CD images to also be used for USB images. Eric > Hi, > > > I have put a binary leaf bering image built with: > > > 1) build the env with buildroot, so I got the lrp in packages > > > 2) these commands: > > > mkdosfs /dev/sde1 mount /dev/sde1 /mnt cd /root/packages cp -pr * /mnt umount > /mnt > syslinux /dev/sde1 > > 3) syslinux.cfg: > > > PKGPATH=/dev/sda1:msdos and so LEAFCFG > > > put initrd_usb.lrp > > in my sourceforge leaf cvs devel area : devel/faino/usbtest > > feel free to test it if you like, please us know how it goes. > > Regards, > Andrea Fino > > > -- > Andrea Fino 8-) - "Sistemi su misura di qualita' industriale" > "Handcrafted systems with industrial quality" > [Web: http://www.faino.org ]+[Email: [EMAIL PROTECTED] ] > > > > > --- > This SF.Net email is sponsored by xPML, a groundbreaking scripting > language that extends applications into web and mobile media. Attend the > live webcast and join the prime developer group breaking into this new > coding territory! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 > > > ___ > leaf-devel mailing list leaf-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/leaf-devel > > --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ leaf-devel mailing list leaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-devel
Re: [leaf-devel] flash usb
On Sun, 2006-03-26 at 08:38, Andrea Fino wrote: > I have put a binary leaf bering image built with: > in my sourceforge leaf cvs devel area : devel/faino/usbtest http://cvs.sourceforge.net/viewcvs.py/leaf/devel/faino/ > feel free to test it if you like, please us know how it goes. Andrea, Thank you for taking the time to create this image. With Jorn's image and this new one, I'm confident a generic/universal usb flash drive image is possible. :-) -- Mike Noyes http://sourceforge.net/users/mhnoyes/ SF.net Projects: leaf, phpwebsite, phpwebsite-comm, sitedocs --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ leaf-devel mailing list leaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-devel
Re: [leaf-devel] flash usb
Hi, I have put a binary leaf bering image built with: 1) build the env with buildroot, so I got the lrp in packages 2) these commands: mkdosfs /dev/sde1 mount /dev/sde1 /mnt cd /root/packages cp -pr * /mnt umount /mnt syslinux /dev/sde1 3) syslinux.cfg: PKGPATH=/dev/sda1:msdos and so LEAFCFG put initrd_usb.lrp in my sourceforge leaf cvs devel area : devel/faino/usbtest feel free to test it if you like, please us know how it goes. Regards, Andrea Fino -- Andrea Fino 8-) - "Sistemi su misura di qualita' industriale" "Handcrafted systems with industrial quality" [Web: http://www.faino.org ]+[Email: [EMAIL PROTECTED] ] --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 ___ leaf-devel mailing list leaf-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/leaf-devel