ssh 192.168.0.4 mkfs.ext3 /dev/sda2
ssh 192.168.0.4 mount /dev/sda1 /mnt/sda1
ssh 192.168.0.4 mount /dev/sda2 /mnt/sda2
sudo kpartx -av debian.phase2.img
sudo mount /dev/mapper/loop0p2 p2
cd p2
sudo tar -czf - . | ssh 192.168.0.4 "cd /mnt/sda2 && tar -xzf -"
cd ..
sudo umount p2
sudo mount /dev/mapper/loop0p1 p1
scp p1/uImage 192.168.0.4:/mnt/sda1/uImage2
sudo umount p1
ssh 192.168.0.4 sync
Reboot the plug, and go to uBoot. Remove all USB drives.
setenv x_bootcmd_kernel fatload usb 0 0x6400000 uImage2
setenv x_bootargs_root root=/dev/sda2 rootdelay=10 panic=10
saveenv
Extract the libs:
mkdir libs
cd libs/
sudo tar -xzf ../sda2.tgz
cd lib/modules
sudo tar -czf - . | ssh 192.168.0.4 "cd /lib/modules && tar -xzf -"
No comments:
Post a Comment