I-Appliance BBS
The Official Source for Internet Appliance Upgrades and Mods

Click Here!
BBS Main List | Sign In | Sign Up | Search | Help | Linux-Hacker.netReply to Thread | Printer |

Home / Other I-Appliances / MSN Companion
grub working! can create own bootable images easily.

New Messagegrub working! can create own bootable images easily. (modified 0 times) johnmeacham
Profile
after much hacking i was able to figure out how to create a grub bootable cf card from scratch. (no windows or dolly needed for installation now!)

first you need a linux (or whatever) box with grub installed (just the software, the computer does not need to boot via grub) and the ablility to r/w cf cards.

erase your card and give it an ext2fs partition (you can start with one of the prebuilt images that are floating around, you just need to make space on the ext2 partition for the bootloader)

for now i will assume your cf card is on
/dev/sda and you mount it on /mnt/cf.
replace with your own settings everywhere they appear.

"mount /mnt/cf"
"mkdir /mnt/cf/boot"

"grub-install --root-directory=/mnt/cf /dev/sda"

now this will create a file /mnt/cf/boot/grub/device.map
edit this file and replace its contents with the single line
(hd0) /dev/sda

then rerun the command

"grub-install --root-directory=/mnt/cf /dev/sda"

it should print out just that line as the contents of the map file.

done! unmount /mnt/cf and boot your nice bootable cf card!
grub is really nice in this situation since it knows how to read ext2fs so it can boot pretty much any kernel on your card without having to rerun like lilo.


note that we never actually have to involve the ia-1 in this process! meaning you can write a script which will do EVERYTHING requried to create a fully bootable cf card.

copy a kernel and some apps to /mnt/cf/bin and /mnt/cf/boot and you have your own mini-distribution.

this process should work on any size cf card.

a similar process will probably work under *BSD.

12-20-2001 03:41:26

New MessageRE:grub working! can create own bootable images easily. (modified 0 times) bballctaulbee
Profile
- very nice!

- now if would could find a 'modern' distro that supports X and other apps that fits onto a 64MB CF...

(seriously though, i'm going to try this after the holidays with a newer distro... thanks for your work!)

12-20-2001 07:26:29

New MessageRE:grub working! can create own bootable images easily. (modified 0 times) Rasmus
Profile | Email
Cool, I had been meaning to look at using grub for this as well. You just saved us all some fiddling.

Has anybody tried Transmeta's Midori distro, by the way? This Jailbait stuff is rather flaky and it is annoying to go through and track down all the issues.

12-20-2001 12:07:06

New MessageRE:grub working! can create own bootable images easily. (modified 0 times) rlyacht
Profile
What are you using to write to the CF from linux? I have a Zio and it seems that the driver is read-only right now.
12-20-2001 12:56:08

New MessageRE:grub working! can create own bootable images easily. (modified 1 times) johnmeacham
Profile
I am using a "travel flash" usb cf/smartmedia/sd/mmc reader/writer. it worked right out of the box on my redhat 7.2 system using the usb-storage driver.
the card appears as the scsi device /dev/sda. the only problem is that hot swapping confuses it so you sometimes have to plug/unplug the usb reader a couple times to get it to mount the drive.
(this cost about $30 at frys)

another cheaper way (if you have a laptop availible) is a pcmcia->cf converter which can be gotten real cheap (like $10) and then your cf card will appear as another ide device (such as /dev/hde or something)


to find out where your cf card is being attatched check the output of 'dmesg' right after you plug it in, there should be some diagnostic stuff which will let you know what is going on.

12-20-2001 18:11:47

New MessageRE:grub working! can create own bootable images easily. (modified 0 times) rlyacht
Profile
Thanks for the tip (Flash -> PCMCIA adapter). I have a thinkpad running RH7.2, so this will work nicely for me, and CompUSA does indeed have them for $10.
12-20-2001 21:13:44

Reply to Thread | Printer |
All times are PSTPowered by UltraBoard v1.62



Copyright © 2000, Netmake Inc. All Rights Reserved.
See Terms and Conditions for more information.




i-opener opener laptop notebook computer help drivers dll free windows dos repair fix linux mac macintosh 2000 95 98 nt pc configure hardware software sound video netscape explorer network networking lan wan software cmos fat bios printer card mouse modem ide scsi cd rom controllers scanner tape hard drive cgi scripts source code mp3