![]() |
Re: How to boot from USB HD?
Ok, connected my HD, opened two terminals, and then when the flasher was waiting at the dropbear prompt, I went to the second terminal (as root, in the directory above my initfs_flasher dir) and did:
Code:
cp /dev/sda2 initfs_flasher/initfs/dev/sda2 |
Re: How to boot from USB HD?
Quote:
Either copy the one from the root filesystem (and maybe chmod to match the others in the initfs?) or use mknod. |
Re: How to boot from USB HD?
Quote:
Also, the major and minor numbers of sda, sda1 and sda2 look correct; sda: 8, 0 sda1: 8, 1 sda2: 8, 2 I would love some guidance on fanoush's second idea... Quote:
|
Re: How to boot from USB HD?
OK. So, I set the permissions after copying sda2 (chmod g-r initfs_flasher/initfs/dev/sda2) and I added a new section "usb2)" (which matches my current MENU_5_ID) to the special cases at the bottom of the bootmenu.sh file:
Code:
case "$default_root" in Is there any kind of diagnostic message I can print on the screen to see exactly what part of the boot attempt is failing? The vague failure message, so typical of this device, is extremely unhelpful... EDIT: Hmmm, I wonder if I put the special usb2 case at the very end... I think that's what fanoush meant... okay trying again... EDIT2: Still no dice... interesting note, the HD shows no activity during the boot process, but after the boot failure, there is some activity as OS2008 mounts it. |
Re: How to boot from USB HD?
you got it, so maybe the sleep timeout is still too short? you can boot system, as root run 'cat /proc/kmsg' and measure time between switching to host mode or attaching cable and final message with disk partitions detected
I'll try it this evening, usb card reader with my regular bootable card should be enough for such test. |
Re: How to boot from USB HD?
OK, got it to boot. There is one more gotcha. The host mode is not enabled until any usb client (!!) module is inserted. So you need to add e.g. 'g_ether' to list of modules. Also for me the device scan took more than 5 seconds. Worked with sleep 7.
The bug/feature of host mode not working with no gadget driver loaded is known, I was already bitten by this in OS2007 days. |
Re: How to boot from USB HD?
Quote:
TIA, bun |
Re: How to boot from USB HD?
C'mon, bun, you know me. When I figure it out, I'll post a how-to.
|
Re: How to boot from USB HD?
OK, got it booting.
First: it was a disappointment. Not really any noticeable speed difference, and difficult to use because your entire system is running over a wiggly little USB cable connected to the HD. Perhaps an advantage to this is being able to load your system up with huge apps. But who does that anyway? If you really needs lots of system space, just get a 16GB flash card instead. Perhaps another advantage is being able to boot any computer from a single drive; you can install boot partitions for linux, Mac, Windows, NIT etc.... Hmm, still dubious. After I've said all that, here's what I did (thanks fanoush, Benson et al!) to get it working. This of course assumes that you've got multiboot, and you've got an external usb storage device that mounts as "sda" on the tablet (you can determine this by looking at /media/usb when you plug in the device). This device could be a USB key or a flash card inserted in a supported flash reader instead of an HD, of course. 1. Use a partitioning app to create a second partition on your HD, formatted as ext2 or ext3 (I used ext3, so the howto assumes this). I used Debian QTParted to shrink my fat32 partition and create a new ext3 partition. It is just not a good idea to make the first partition of any removable device into a linux partition. Windows computers will have difficulty mounting it, and the tablet will do weird things, too, if you boot to it. http://farm4.static.flickr.com/3014/...714792.jpg?v=0 2. I cloned my OS2008 to my new partition. First I mounted my my new HD partition as /opt. As root: Code:
insmod /mnt/initfs/lib/modules/2.6.21-omap1/mbcache.ko ...and then I used Milhouse's nupgrade.sh script (steps 2-4) to do the cloning. 3. I edited my initfs_flasher/bootmenu.conf file to have the following entry: Code:
MENU_5_USBMODE=host Code:
case "$default_root" in 5b. ...I opened a second terminal window. I gained root in the second terminal and, in the directory above the initfs_flasher dir (in my case, this is /root), I made sure that the drive was plugged in and working and then issued the following commands: Code:
cp /dev/sda2 initfs_flasher/initfs/dev DONE. When the system reboots, your tablet should be able to boot to partition 2 on the external usb storage device. So, fanoush, any possibility of adding some stuff to your initfs_flasher package to eliminate the need to do those hacks? |
Re: How to boot from USB HD?
Quote:
I need a boot menu setup like this internal flash external mmc card partition 2 ext 2 And the one you made for USB2 ! Hope u can help . Thank you Compuerfreek |
All times are GMT. The time now is 15:09. |
vBulletin® Version 3.8.8