First of all, I saw some members thought the kernel would be part of the distributions. It isn't! The kernel and the initrd always come from the boot image
(nBkProOs.img
).
Here are some useful instructions I figured out:
Booting the Linux without installation to flash ROM's.
Prepare a CF card with two partitions: type 06h
(FAT16
) and 83h
(Linux
). The first partition must be FAT16 formatted and it must contain only the file
http://linuxtogo.org/~florian/nBkProOs.img_cf renamed to nBkProOs.img.
The second partition must be ext2 formatted
(use mke2fs
), and it must contain the files contained in the image
http://linuxtogo.org/~florian/netbook/gpe-image-3.5.4.1-netbook-pro... . For making that copy, you need to mount that jffs2 image through a loop-back device on your PC first. This is a little bit difficult, because jffs2 is not like other file system types. I followed these commands, found somewhere on the internet:
Mounting the JFFS2 image:
# modprobe mtdcore
# modprobe mtdram total_size=32768 erase_size=256
# mkdir /dev/mtdblock ; for i in 0 1 2 3 ; do mknod /dev/mtdblock/$i b 31 $i; done
# dd if=gpe-image-3.5.4.1-netbook-pro.rootfs.jffs2 of=/dev/mtdblock/0
# mkdir /mnt/jffs2
# mount -t jffs2 /dev/mtdblock/0 /mnt/jffs2
Even mount the second partition of CF with commands like this:
# mkdir /mnt/cf-part2
# mount -t ext2 /dev/sdx2 /mnt/cf-part2 # Please replace the 'x' in /dev/sdx2
After that, the files can be copied with:
# cp -a /mnt/jffs2/* /mnt/cf-part2
Unmounting is:
# umount /mnt/cf-part2
# umount /mnt/jffs2
# rmmod mtdram
For booting the CF card on the Netbook Pro, reset it, press Ctrl+D+ESC and insert the card.
In the running distribution: Getting rid of the one-minute-sleep
In a root shell type:
# gpe-edit /etc/init.d/checkversion
Then remove the line containing the command "sleep 60" and save the file.
In the running distribution: Making the correct kernel modules available. IMPORTANT!
This gives access to the additional kernel drivers, provided by the initrd!!!
In a root shell type:
# cd /lib/modules
# mv 2.6.9-rc1-bk18-nb1 2.6.9-rc1-bk18-nb1.old
# ln -s /initrd/lib/modules/2.6.9-rc1-bk18-nb1 .
# halt
Then wait for black screen, reset the machine and re-start as usual with Ctrl+D+ESC
(or without Ctrl+D if installed to the flash ROM's
). If you enter a root shell again and type lsmod, you should see a lot of modules loaded.
And then you could do for example:
In the running distribution: Mounting an USB memory stick
Plug in the USB stick, and in a root shell type:
# modprobe sl811-hcd
Wait 15 seconds.
# lsmod
Now you should see at least sd_mod, usb_storage, scsi_mod and sl811-hcd.
# mkdir /mnt/usbstick
# mount -t vfat /dev/sda1 /mnt/usbstick
# ls /mnt/usbstick
For unmounting:
# umount /mnt/usbstick
---
I even tried to setup a PCMCIA ethernet card using the right kernel modul axnet_cs, but without success. The device refuses to appear in /proc/net/dev.
Another thing I tried was an USB mouse, but it seems this would require to compile more kernel modules.
Edited by oldman 2007-10-31 1:04 PM