zussel
Re: Howto: Install readonly emdebian on NAND January 21, 2011 06:41AM |
Re: Howto: Install readonly emdebian on NAND January 24, 2011 09:13AM |
Registered: 13 years ago Posts: 11 |
After first bricking my dockstar by not having any access to it any more, I finally managed to understand what was wrong (by grabbing a serial console port cable)...Quote
Jeff
- Configure UBIFS booting
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'
fw_setenv ubifs_set_bootargs 'setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts init=/sbin/init-ro' fw_setenv ubifs_bootcmd 'run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && ubifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi' # Configure new bootloader to run old uBoot fw_setenv bootcmd 'usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset'
fw_setenv usb_set_bootargs 'setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts init=/sbin/init-ro'With this:
fw_setenv usb_custom_params 'init=/sbin/init-ro'If you already ran the provided way, additionally restore your usb_set_bootargs and maybe ubifs_set_bootargs:
fw_setenv usb_set_bootargs 'setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params' fw_setenv ubifs_set_bootargs 'setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params'
fw_setenv ubifs_custom_params 'init=/sbin/init-ro'
fw_setenv bootcmd 'usb start; run force_rescue_bootcmd; run usb_bootcmd; run ubifs_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset'
Re: Howto: Install readonly emdebian on NAND February 04, 2011 07:38PM |
Registered: 13 years ago Posts: 1 |
Re: Howto: Install readonly emdebian on NAND February 07, 2011 07:16AM |
Registered: 13 years ago Posts: 11 |
jerome
Re: Howto: Install readonly emdebian on NAND February 20, 2011 10:54AM |
jerome
Re: Howto: Install readonly emdebian on NAND February 20, 2011 11:03AM |
Stephen Harris
Re: Emdebian installer has "Hmms", then boot does not complete to get IP address and open shell - however Debian works on the same system February 20, 2011 02:04PM |
schrad
Re: Howto: Install readonly emdebian on NAND March 05, 2011 04:21AM |
Yuriy
Re: Howto: Install readonly emdebian on NAND March 25, 2011 07:08PM |
Yuriy
Re: Howto: Install readonly emdebian on NAND April 05, 2011 10:41AM |
ldpinney
Re: Howto: Install readonly emdebian on NAND May 05, 2011 06:41AM |
Re: Howto: Install readonly emdebian on NAND June 14, 2011 07:41PM |
Registered: 13 years ago Posts: 218 |
Ivan
Re: Howto: Install readonly emdebian on NAND October 11, 2011 01:04PM |
Re: Howto: Install readonly emdebian on NAND October 27, 2011 02:02PM |
Registered: 13 years ago Posts: 4 |
Re: Howto: Install readonly emdebian on NAND November 02, 2011 04:23PM |
Registered: 13 years ago Posts: 218 |
Re: Howto: Install readonly emdebian on NAND November 20, 2011 02:40PM |
Registered: 14 years ago Posts: 19 |
$ W: Not using locking for read only lock file /var/lib/dpkg/lock $ E: Unable to write to /var/cache/apt/ $ E: The package lists or status file could not be parsed or opened.
Re: Howto: Install readonly emdebian on NAND December 16, 2011 12:16PM |
Registered: 12 years ago Posts: 10 |
Re: Howto: Install readonly emdebian on NAND February 18, 2012 06:11PM |
Registered: 13 years ago Posts: 501 |
verify_checksum () { # args: dest checksum size local expchecksum="$2" local expsize="$3" relchecksum=`sha${SHA_SIZE}sum < "$1" | sed 's/ .*$//'` relsize=`wc -c < "$1"` if [ "$expsize" -ne "$relsize" ] || [ "$expchecksum" != "$relchecksum" ]; then relchecksum=`md5sum < "$1" | sed 's/ .*$//'` if [ "$expsize" -ne "$relsize" ] || [ "$expchecksum" != "$relchecksum" ]; then return 1 fi fi return 0 }
debootstrap_1.0.38_all.deb
Pallando
Re: Howto: Install readonly emdebian on NAND April 13, 2012 05:20AM |
fw_setenv usb_custom_params 'init=/sbin/init-ro'... and rebooted.
### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x800000 Scanning JFFS2 FS: ........ done. ### JFFS2 load complete: 524288 bytes loaded to 0x800000 ## Starting application at 0x00800200 ...
pallando
Re: Howto: Install readonly emdebian on NAND April 13, 2012 10:44AM |
Re: Howto: Install readonly emdebian on NAND May 09, 2012 09:24PM |
Registered: 12 years ago Posts: 7 |
Re: Howto: Install readonly emdebian on NAND May 11, 2012 04:05PM |
Registered: 12 years ago Posts: 7 |
root@debian:/tmp# cat /proc/mtd dev: size erasesize name mtd0: 00100000 00020000 "u-boot" mtd1: 00400000 00020000 "uImage" mtd2: 02000000 00020000 "rootfs" mtd3: 0db00000 00020000 "data" [ 22.506850] Creating 4 MTD partitions on "orion_nand": [ 22.512031] 0x000000000000-0x000000100000 : "u-boot" [ 22.517582] 0x000000100000-0x000000500000 : "uImage" [ 22.523053] 0x000000500000-0x000002500000 : "rootfs" [ 22.528533] 0x000002500000-0x000010000000 : "data"
//Backup Command from emDebian //Based on http://projects.doozan.com/uboot/build_uboot.htm nanddump -nof mtd0.nanddump /dev/mtd0 //Block size 131072, page size 2048, OOB size 64 //Dumping data starting at 0x00000000 and ending at 0x00100000... //-rwxr-xr-x 1 root root 1048576 May 11 20:41 mtd0.nanddump nanddump -nf mtd0.nanddump.oob /dev/mtd0 //Block size 131072, page size 2048, OOB size 64 //Dumping data starting at 0x00000000 and ending at 0x00100000... //-rwxr-xr-x 1 root root 1081344 May 11 20:44 mtd0.nanddump.oob nanddump -nof mtd0_0_0x100000.nanddump -s 0 -l 0x100000 /dev/mtd0 //Block size 131072, page size 2048, OOB size 64 //Dumping data starting at 0x00000000 and ending at 0x00100000... //-rwxr-xr-x 1 root root 1048576 May 11 20:45 mtd0_0_0x100000.nanddump //diff mtd0.nanddump mtd0_0_0x100000.nanddump did not output any difference nanddump -nof mtd1.nanddump /dev/mtd1 //Block size 131072, page size 2048, OOB size 64 //Dumping data starting at 0x00000000 and ending at 0x00400000... //-rwxr-xr-x 1 root root 4194304 May 11 20:48 mtd1.nanddump nanddump -nf mtd1.nanddump.oob /dev/mtd1 //Block size 131072, page size 2048, OOB size 64 //Dumping data starting at 0x00000000 and ending at 0x00400000... //-rwxr-xr-x 1 root root 4325376 May 11 20:48 mtd1.nanddump.oob nanddump -nof mtd1_0x100000_0x400000.nanddump -s 0x100000 -l 0x400000 /dev/mtd1 //Block size 131072, page size 2048, OOB size 64 //Dumping data starting at 0x00100000 and ending at 0x00400000... //-rwxr-xr-x 1 root root 3145728 May 11 20:52 mtd1_0x100000_0x400000.nanddump nanddump -nof mtd2.nanddump /dev/mtd2 //Block size 131072, page size 2048, OOB size 64 //Dumping data starting at 0x00000000 and ending at 0x02000000... //-rwxr-xr-x 1 root root 33554432 May 11 20:50 mtd2.nanddump nanddump -nf mtd2.nanddump.oob /dev/mtd2 //Block size 131072, page size 2048, OOB size 64 //Dumping data starting at 0x00000000 and ending at 0x02000000... //-rwxr-xr-x 1 root root 34603008 May 11 20:51 mtd2.nanddump.oob nanddump -nof mtd2_0x500000_0x2000000.nanddump -s 0x500000 -l 0x2000000 /dev/mtd2 //Block size 131072, page size 2048, OOB size 64 //Dumping data starting at 0x00500000 and ending at 0x02000000... //-rwxr-xr-x 1 root root 28311552 May 11 20:54 mtd2_0x500000_0x2000000.nanddump nanddump -nof mtd3.nanddump /dev/mtd3 //Block size 131072, page size 2048, OOB size 64 //Dumping data starting at 0x00000000 and ending at 0x0db00000... //-rwxr-xr-x 1 root root 229638144 May 11 20:56 mtd3.nanddump nanddump -nf mtd3.nanddump.oob /dev/mtd3 //Block size 131072, page size 2048, OOB size 64 //Dumping data starting at 0x00000000 and ending at 0x0db00000... //-rwxr-xr-x 1 root root 236814336 May 11 20:57 mtd3.nanddump.oob nanddump -nof mtd3_0_0x100000.nanddump -s 0x2500000 -l 0xdb00000 /dev/mtd3 //Block size 131072, page size 2048, OOB size 64 //Dumping data starting at 0x02500000 and ending at 0x0db00000... //-rwxr-xr-x 1 root root 190840832 May 11 20:58 mtd3_0_0x100000.nanddump
George White
Re: Howto: Install readonly emdebian on NAND December 11, 2012 07:04PM |
Re: Howto: Install readonly emdebian on NAND December 12, 2012 11:15AM |
Registered: 14 years ago Posts: 7 |
Re: Howto: Install readonly emdebian on NAND December 12, 2012 03:14PM |
Admin Registered: 13 years ago Posts: 18,900 |
nivekmai
Re: Howto: Install readonly emdebian on NAND March 26, 2013 04:40PM |
Re: Howto: Install readonly emdebian on NAND March 28, 2013 07:54AM |
Registered: 13 years ago Posts: 218 |
WhiteFang
Re: Howto: Install readonly emdebian on NAND August 11, 2013 11:36AM |
Jeff LaCoursiere
Re: Howto: Install readonly emdebian on NAND August 19, 2013 09:23AM |
Re: Howto: Install readonly emdebian on NAND December 15, 2013 02:13PM |
Registered: 10 years ago Posts: 44 |