Howto: Install readonly emdebian on NAND August 12, 2010 03:26PM |
Admin Registered: 14 years ago Posts: 304 |
cd /tmp wget http://jeff.doozan.com/debian/dockstar.emdebian-squeeze-readonly.sh chmod +x dockstar.emdebian-squeeze-readonly.sh export PATH=$PATH:/usr/sbin:/sbin ./dockstar.emdebian-squeeze-readonly.sh
flash_eraseall /dev/mtd3 ubiformat /dev/mtd3 -y ubiattach /dev/ubi_ctrl -m 3 ubimkvol /dev/ubi0 -m -N rootfs
mkdir /tmp/ubifs mount -t ubifs ubi0:rootfs /tmp/ubifs tar \ --exclude=/lost+found \ --exclude=/tmp \ --exclude=/sys \ --exclude=/proc \ -cf - / | ( cd /tmp/ubifs ; tar -xpvf - ) mkdir /tmp/ubifs/tmp mkdir /tmp/ubifs/sys mkdir /tmp/ubifs/proc # change root fs type from ext2 to ubifs sed -i 's/^\(\/dev\/root.*\)ext2/\1ubifs/' /tmp/ubifs/etc/fstab > /dev/null 2>&1 umount /tmp/ubifs
fw_setenv set_bootargs_ubi 'setenv bootargs console=$console ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs $mtdparts init=/sbin/init-ro' fw_setenv bootcmd_ubi 'run set_bootargs_ubi; ubi part data; ubifsmount rootfs; ubifsload 0x800000 /boot/uImage; ubifsload 0x1100000 /boot/uInitrd; bootm 0x800000 0x1100000' # Configure new bootloader to run old uBoot fw_setenv bootcmd 'run bootcmd_ubi; run bootcmd_usb; run bootcmd_pogo; reset'
drakaz
Re: Install readonly embdebian on NAND August 16, 2010 01:00PM |
Mark
Does it work on POGOE02 August 17, 2010 08:14AM |
Re: Install readonly embdebian on NAND August 17, 2010 08:20AM |
Registered: 14 years ago Posts: 136 |
Mark
Re: Install readonly embdebian on NAND August 17, 2010 08:56AM |
Re: Install readonly embdebian on NAND August 17, 2010 09:21AM |
Admin Registered: 14 years ago Posts: 304 |
Re: Install readonly embdebian on NAND August 18, 2010 03:59PM |
Registered: 14 years ago Posts: 6 |
Re: Install readonly embdebian on NAND August 18, 2010 08:04PM |
Admin Registered: 14 years ago Posts: 304 |
run bootcmd_usb
fw_setenv bootcmd 'run bootcmd_usb; run bootcmd_ubi; run bootcmd_pogo; reset'
fw_setenv bootcmd 'run bootcmd_ubi; run bootcmd_usb; run bootcmd_pogo; reset'
thorsten
Re: Install readonly embdebian on NAND August 19, 2010 01:47AM |
diarmuid
Re: Install readonly embdebian on NAND August 19, 2010 12:29PM |
mxspy
Re: Install readonly embdebian on NAND August 23, 2010 02:44PM |
Re: Install readonly embdebian on NAND August 23, 2010 02:52PM |
Admin Registered: 14 years ago Posts: 304 |
apt-get install mtd-utils
mxspy
Re: Install readonly embdebian on NAND August 23, 2010 02:58PM |
Re: Install readonly embdebian on NAND August 23, 2010 03:00PM |
Admin Registered: 14 years ago Posts: 304 |
mxspy
Re: Install readonly embdebian on NAND August 23, 2010 03:10PM |
Re: Install readonly embdebian on NAND August 23, 2010 03:26PM |
Admin Registered: 14 years ago Posts: 304 |
fw_setenv set_bootargs_usb 'setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype init=/sbin/init-ro $mtdparts'
mxspy
Re: Install readonly embdebian on NAND August 23, 2010 04:13PM |
Re: Install readonly embdebian on NAND August 24, 2010 06:03AM |
Registered: 14 years ago Posts: 7 |
Re: Install readonly embdebian on NAND August 24, 2010 08:18AM |
Admin Registered: 14 years ago Posts: 304 |
fw_setenv mtdparts 'mtdparts=orion_nand:1M(u-boot),-(data)'
flash_eraseall /dev/mtd1 ubiformat /dev/mtd1 -y ubiattach /dev/ubi_ctrl -m 1 ubimkvol /dev/ubi0 -m -N rootfs
fw_setenv set_bootargs_ubi 'setenv bootargs console=$console ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs $mtdparts init=/sbin/init-ro' fw_setenv bootcmd_ubi 'run set_bootargs_ubi; ubi part data; ubifsmount rootfs; ubifsload 0x800000 /boot/uImage; ubifsload 0x1100000 /boot/uInitrd; bootm 0x800000 0x1100000' # Configure new bootloader to try ubi booting, then USB booting. The Pogoplug recovery partition has been removed. fw_setenv bootcmd 'run bootcmd_ubi; run bootcmd_usb; reset'
ecc
Re: Install readonly embdebian on NAND August 27, 2010 10:37AM |
Re: Install readonly embdebian on NAND August 27, 2010 11:18AM |
Admin Registered: 14 years ago Posts: 304 |
Hendrik
Re: Install readonly embdebian on NAND August 27, 2010 03:34PM |
Re: Install readonly embdebian on NAND August 28, 2010 01:23PM |
Registered: 14 years ago Posts: 107 |
Re: Install readonly embdebian on NAND August 29, 2010 05:39AM |
Registered: 14 years ago Posts: 6 |
Jörn
Re: Install readonly embdebian on NAND August 31, 2010 04:25PM |
fw_setenv set_bootargs_usb 'setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype init=/sbin/init-ro $mtdparts'
Re: Install readonly embdebian on NAND August 31, 2010 07:30PM |
Registered: 14 years ago Posts: 107 |
init=/sbin/init ro
Re: Install readonly embdebian on NAND August 31, 2010 07:46PM |
Admin Registered: 14 years ago Posts: 304 |
Re: Install readonly embdebian on NAND August 31, 2010 07:59PM |
Registered: 14 years ago Posts: 107 |
Re: Install readonly embdebian on NAND August 31, 2010 10:32PM |
Admin Registered: 14 years ago Posts: 304 |
Hendrik
Re: Install readonly embdebian on NAND September 01, 2010 12:32PM |
flash_eraseall /dev/mtd3 ubiformat /dev/mtd3 -y ubiattach /dev/ubi_ctrl -m 3 ubimkvol /dev/ubi0 -m -N rootfs Pogoplug:~$ ubimkvol /dev/ubi0 -m -N rootfs -bash: ubimkvol: command not found