Newer uBoot as workaround to 3.2 kernel problem? February 05, 2012 07:12PM |
Registered: 13 years ago Posts: 502 |
U-Boot 2010.09 (Oct 23 2010 - 11:51:16) Marvell-PinkPogo by Jeff Doozan SoC: Kirkwood 88F6281_A0 DRAM: 256 MiB NAND: 128 MiB In: serial Out: serial Err: serial Net: egiga0 88E1116 Initialized on egiga0 Hit any key to stop autoboot: 0 Marvell>> Marvell>>Press any key to stop the boot process. You may have to press the key several times, or even hold it down for several seconds.
tftpboot 0x800000 <filename>where <filename> is taken from the matching filename above
Marvell>> tftpboot 0x800000 uboot.pogoplugE02-arcNumfixed-L2Coff.kwb tftpboot 0x800000 uboot.pogoplugE02-arcNumfixed-L2Coff.kwb Using egiga0 device TFTP from server 192.168.11.149; our IP address is 192.168.11.150 Filename 'uboot.pogoplugE02-arcNumfixed-L2Coff.kwb'. Load address: 0x800000 Loading: #################################### done Bytes transferred = 524288 (80000 hex)The "Bytes transferred" value should be hex 80000 (decimal 524288) - if you don't get that value, then something is wrong.
nand erase 0x0 0x80000 nand write.e 0x800000 0x0 0x80000
Marvell>> nand erase 0x0 0x80000 nand erase 0x0 0x80000 NAND erase: device 0 offset 0x0, size 0x80000 Erasing at 0x60000 -- 100% complete. OK Marvell>> nand write.e 0x800000 0x0 0x80000 nand write.e 0x800000 0x0 0x80000 NAND write: device 0 offset 0x0, size 0x80000 524288 bytes written: OK
Marvell>> reset
U-Boot 2011.12 (May 28 2012 - 11:59:39) Pogoplug E02 SoC: Kirkwood 88F6281_A0 DRAM: 256 MiB WARNING: Caches not enabled NAND: 128 MiB In: serial Out: serial Err: serial Net: egiga0 88E1116 Initialized on egiga0 Hit any key to stop autoboot: 0
Re: Newer uBoot as workaround to 3.2 kernel problem? February 06, 2012 04:59AM |
Registered: 13 years ago Posts: 78 |
Re: Newer uBoot as workaround to 3.2 kernel problem? February 06, 2012 02:56PM |
Registered: 13 years ago Posts: 502 |
Re: Newer uBoot as workaround to 3.2 kernel problem? February 07, 2012 10:22PM |
Registered: 13 years ago Posts: 502 |
Robert Mugabe
Re: Newer uBoot as workaround to 3.2 kernel problem? February 08, 2012 07:46AM |
U-Boot 2010.09 (Oct 23 2010 - 11:49:22) Marvell-Dockstar/Pogoplug by Jeff Doozan SoC: Kirkwood 88F6281_A0 DRAM: 128 MiB NAND: 256 MiB In: serial Out: serial Err: serial Net: egiga0 88E1116 Initialized on egiga0 Hit any key to stop autoboot: 0 Marvell>> Marvell>> Marvell>> setenv ipaddr 192.168.0.111 Marvell>> setenv serverip 192.168.0.120 Marvell>> tftp 0x800000 uboot.mtd0.kwb Using egiga0 device TFTP from server 192.168.0.120; our IP address is 192.168.0.111 Filename 'uboot.mtd0.kwb'. Load address: 0x800000 Loading: ################################################################# ###################################### done Bytes transferred = 524288 (80000 hex) Marvell>> go 0x800200 ## Starting application at 0x00800200 ...
Re: Newer uBoot as workaround to 3.2 kernel problem? February 08, 2012 04:21PM |
Registered: 13 years ago Posts: 502 |
Re: Newer uBoot as workaround to 3.2 kernel problem? February 08, 2012 05:21PM |
Registered: 13 years ago Posts: 502 |
arm-none-linux-gnueabi-objcopy --gap-fill=0xff -O binary u-boot u-boot.bin tools/mkimage -n "/usr/src/u-boot-marvell/"board/Seagate/dockstar"/kwbimage.cfg" -T kwbimage \ -a 0x00600000 -e 0x00600000 -d u-boot.bin u-boot.kwb Preparing kirkwood boot image to boot from nand Nand ECC mode = default Nand page size = 0x800 Image Type: Kirkwood Boot from NAND Flash Image Data Size: 365224 Bytes = 356.66 kB = 0.35 MB Load Address: 00600000 Entry Point: 00600000
Re: Newer uBoot as workaround to 3.2 kernel problem? February 08, 2012 11:43PM |
Registered: 13 years ago Posts: 502 |
Marvell>> tftp 0x800000 uboot.mtd0.goflexnet.jeff-2010-10-23.kwb Using egiga0 device TFTP from server 192.168.11.149; our IP address is 192.168.11.187 Filename 'uboot.mtd0.goflexnet.jeff-2010-10-23.kwb'. Load address: 0x800000 Loading: #################################### done Bytes transferred = 524288 (80000 hex) Marvell>> go 0x800200 ## Starting application at 0x00800200 ... U-Boot 2010.09 (Oct 23 2010 - 11:53:10) Marvell-GoflexNet by Jeff Doozan, Peter Carmichael SoC: Kirkwood 88F6281_A0 DRAM: 128 MiB NAND: 256 MiB In: serial Out: serial Err: serial Net: egiga0 88E1116 Initialized on egiga0 Hit any key to stop autoboot: 0 Marvell>>
Re: Newer uBoot as workaround to 3.2 kernel problem? February 09, 2012 12:34AM |
Registered: 13 years ago Posts: 502 |
Marvell>> tftp 0x800000 uboot.mtd0.kwb Using egiga0 device TFTP from server 192.168.11.149; our IP address is 192.168.11.187 Filename 'uboot.mtd0.kwb'. Load address: 0x800000 Loading: #################################### done Bytes transferred = 524288 (80000 hex) Marvell>> go 0x800200 ## Starting application at 0x00800200 ... U-Boot 2010.09 (Feb 09 2012 - 00:29:39) Marvell-Dockstar/Pogoplug by Jeff Doozan SoC: Kirkwood 88F6281_A0 DRAM: 128 MiB NAND: 256 MiB In: serial Out: serial Err: serial Net: egiga0 88E1116 Initialized on egiga0 Hit any key to stop autoboot: 0 Marvell>>
dockstar arm arm926ejs - Marvell kirkwood
pinkpogo arm arm926ejs - Marvell kirkwood
tftpboot 0x800000 uboot.mtd0.kwb-modded nand erase 0x0 0x80000 nand write.e 0x800000 0x0 0x80000
Robert Mugabe
Re: Newer uBoot as workaround to 3.2 kernel problem? February 09, 2012 07:43AM |
Marvell>> setenv ipaddr 192.168.0.111 Marvell>> setenv serverip 192.168.0.252 Marvell>> setenv serverip 192.168.0.121 Marvell>> tftp 0x800000 uboot.mtd0.kwb Using egiga0 device TFTP from server 192.168.0.121; our IP address is 192.168.0.111 Filename 'uboot.mtd0.kwb'. Load address: 0x800000 Loading: ################################################################# ###################################### done Bytes transferred = 524288 (80000 hex) Marvell>> go 0x800200 ## Starting application at 0x00800200 ... U-Boot 2010.09 (Feb 09 2012 - 12:47:41) Marvell-Dockstar/Pogoplug by Jeff Doozan SoC: Kirkwood 88F6281_A0 DRAM: 128 MiB NAND: 256 MiB In: serial Out: serial Err: serial Net: egiga0 88E1116 Initialized on egiga0 Hit any key to stop autoboot: 0 (Re)start USB... USB: Register 10011 NbrPorts 1 USB EHCI 1.00 scanning bus for devices... 3 USB Device(s) found scanning bus for storage devices... error in inquiry 0 Storage Device(s) found ** Block device usb 0 not supported ** Invalid boot device ** Creating 1 MTD partitions on "nand0": 0x000002500000-0x000010000000 : "mtd=3" UBI: attaching mtd1 to ubi0 UBI: physical eraseblock size: 131072 bytes (128 KiB) UBI: logical eraseblock size: 129024 bytes UBI: smallest flash I/O unit: 2048 UBI: sub-page size: 512 UBI: VID header offset: 512 (aligned 512) UBI: data offset: 2048 UBI: attached mtd1 to ubi0 UBI: MTD device name: "mtd=3" UBI: MTD device size: 219 MiB UBI: number of good PEBs: 1750 UBI: number of bad PEBs: 2 UBI: max. allowed volumes: 128 UBI: wear-leveling threshold: 4096 UBI: number of internal volumes: 1 UBI: number of user volumes: 0 UBI: available PEBs: 1729 UBI: total number of reserved PEBs: 21 UBI: number of PEBs reserved for bad PEB handling: 17 UBI: max/mean erase counter: 1/1 UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:rootfs", error -19 Error reading superblock on volume 'ubi:rootfs'! ** Block device usb 0 not supported ** Block device usb 1 not supported ** Block device usb 2 not supported ** Block device usb 3 not supported ** Block device usb 0 not supported ** Block device usb 0 not supported Wrong Image Format for bootm command ERROR: can't get kernel image! stopping USB.. ### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x800000 Scanning JFFS2 FS: ........ done.
Re: Newer uBoot as workaround to 3.2 kernel problem? February 09, 2012 10:29PM |
Registered: 13 years ago Posts: 502 |
Robert Mugabe
Re: Newer uBoot as workaround to 3.2 kernel problem? February 10, 2012 05:05AM |
dockstar arm arm926ejs - Marvell kirkwood
Re: Newer uBoot as workaround to 3.2 kernel problem? February 10, 2012 07:21AM |
Registered: 13 years ago Posts: 78 |
Re: Newer uBoot as workaround to 3.2 kernel problem? February 10, 2012 04:38PM |
Registered: 13 years ago Posts: 502 |
Robert Mugabe
Re: Newer uBoot as workaround to 3.2 kernel problem? February 10, 2012 04:43PM |
Re: Newer uBoot as workaround to 3.2 kernel problem? February 10, 2012 05:02PM |
Registered: 13 years ago Posts: 78 |
Re: Newer uBoot as workaround to 3.2 kernel problem? February 10, 2012 05:51PM |
Registered: 13 years ago Posts: 502 |
Re: Newer uBoot as workaround to 3.2 kernel problem? February 11, 2012 02:02AM |
Registered: 13 years ago Posts: 502 |
U-Boot 2011.12-06918-gf33b06f-dirty (Feb 11 2012 - 01:50:51) Seagate FreeAgent DockStar SoC: Kirkwood 88F6281_A0 DRAM: 128 MiB WARNING: Caches not enabled NAND: 256 MiB In: serial Out: serial Err: serial Net: egiga0 88E1116 Initialized on egiga0 Hit any key to stop autoboot: 0 (Re)start USB... USB: Register 10011 NbrPorts 1 USB EHCI 1.00 scanning bus for devices... 3 USB Device(s) found scanning bus for storage devices... 1 Storage Device(s) found Loading file "/boot/uImage" from usb device 0:1 (usbda1) 1589976 bytes read Loading file "/boot/uInitrd" from usb device 0:1 (usbda1) 4989018 bytes read ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-3.2.2 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 1589912 Bytes = 1.5 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: initramfs-3.2.2-kirkwood Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 4988954 Bytes = 4.8 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 3.2.2-kirkwood (root@bitbaker64) (gcc version 4.6.1 (Sourcery CodeBench Lite 2011.09-70) ) #1 Mon Feb 6 22:16:2 [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977 [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] Machine: Seagate FreeAgent DockStar [ 0.000000] Memory policy: ECC disabled, Data cache writeback [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 [ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype=ext2 mtdparts=orion_nand:1M(u-boot),4M(uIma) [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Memory: 128MB = 128MB total [ 0.000000] Memory: 120576k/120576k available, 10496k reserved, 0K highmem ... [ 17.729350] CPU: Testing write buffer coherency: ok [ 17.731911] print_constraints: dummy: [ 17.732154] NET: Registered protocol family 16 [ 17.732851] Kirkwood: MV88F6281-A0, TCLK=200000000. [ 17.732865] Feroceon L2: Enabling L2 [ 17.732901] Feroceon L2: Cache support initialised. [ 17.735404] bio: create slab <bio-0> at 0 [ 17.735699] vgaarb: loaded [ 17.736133] Switching to clocksource orion_clocksource [ 17.745235] NET: Registered protocol family 2 .... [ 18.759262] ONFI flash detected [ 18.762506] ONFI param page 0 valid [ 18.766016] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08AAD) [ 18.773737] Scanning device for bad blocks [ 18.929894] 4 cmdlinepart partitions found on MTD device orion_nand [ 18.936199] Creating 4 MTD partitions on "orion_nand": [ 18.941366] 0x000000000000-0x000000100000 : "u-boot" [ 18.947015] 0x000000100000-0x000000500000 : "uImage" [ 18.952534] 0x000000500000-0x000002500000 : "rootfs" [ 18.958089] 0x000002500000-0x000010000000 : "data" [ 18.964011] mousedev: PS/2 mouse device common for all mice [ 19.976181] rtc-mv rtc-mv: internal RTC not ticking [ 19.981174] i2c /dev entries driver [ 19.984831] cpuidle: using governor ladder [ 19.989090] cpuidle: using governor menu [ 19.994022] TCP cubic registered [ 19.997288] NET: Registered protocol family 17 [ 20.001761] Registering the dns_resolver key type ................ [ 22.576324] sd 0:0:0:0: [sda] Attached SCSI disk Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... done. Begin: Running /scripts/local-bottom ... done. done. Begin: Running /scripts/init-bottom ... done. INIT: version 2.88 booting Using makefile-style concurrent boot in runlevel S. Starting the hotplug events dispatcher: udevd[ 32.683730] udevd[157]: starting version 175 . Synthesizing the initial hotplug events...done. Waiting for /dev to be fully populated...done. Activating swap...[ 34.573303] Adding 258044k swap on /dev/sda2. Priority:-1 extents:1 across:258044k done. Checking root file system...fsck from util-linux 2.20.1 /dev/sda1: clean, 96066/306432 files, 824898/1223704 blocks done. Loading kernel modules...done. Activating lvm and md swap...done. Checking file systems...fsck from util-linux 2.20.1 done. Mounting local filesystems...done. Activating swapfile swap...done. Cleaning up temporary files.... Cleaning up ifupdown.... Setting up networking.... Configuring network interfaces...Setting kernel variables ...done. [ 39.399952] mv643xx_eth_port mv643xx_eth_port.0: eth0: link up, 1000 Mb/s, full duplex, flow control disabled dhcpcd.sh: interface eth0 has been configured with new IP=192.168.11.187 done. [ 43.732733] NET: Registered protocol family 10 Cleaning up temporary files.... INIT: Entering runlevel: 2 Using makefile-style concurrent boot in runlevel 2. Starting internet superserver: inetd. Starting OpenBSD Secure Shell server: sshd. Starting Samba daemons: nmbd smbd. [ 47.248163] ip_tables: (C) 2000-2006 Netfilter Core Team Debian GNU/Linux wheezy/sid debian ttyS0 debian login:
Re: Newer uBoot as workaround to 3.2 kernel problem? February 11, 2012 07:37AM |
Registered: 13 years ago Posts: 78 |
Re: Newer uBoot as workaround to 3.2 kernel problem? February 11, 2012 07:51AM |
Registered: 13 years ago Posts: 502 |
Re: Newer uBoot as workaround to 3.2 kernel problem? February 11, 2012 09:36AM |
Registered: 13 years ago Posts: 502 |
root@debian:/# dpkg -i linux-image-3.2.0-1-kirkwood_3.2.4-1_armel.deb (Reading database ... 33904 files and directories currently installed.) Preparing to replace linux-image-3.2.0-1-kirkwood 3.2.4-1 (using linux-image-3.2.0-1-kirkwood_3.2.4-1_armel.deb) ... Examining /etc/kernel/preinst.d/ Unpacking replacement linux-image-3.2.0-1-kirkwood ... Examining /etc/kernel/postrm.d . run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-1-kirkwood /boot/vmlinuz-3.2.0-1-kirkwood Setting up linux-image-3.2.0-1-kirkwood (3.2.4-1) ... Running depmod. Failed to symbolic-link /boot/initrd.img-3.2.0-1-kirkwood to initrd.img. dpkg: error processing linux-image-3.2.0-1-kirkwood (--install): subprocess installed post-installation script returned error exit status 17 Errors were encountered while processing: linux-image-3.2.0-1-kirkwood
root@debian:/# ls /boot System.map-3.1.9-kirkwood config-3.2.0-1-kirkwood uInitrd System.map-3.2.0-1-kirkwood initrd.img-3.1.9-kirkwood vmlinuz-3.1.9-kirkwood config-3.1.9-kirkwood uImage vmlinuz-3.2.0-1-kirkwood
Re: Newer uBoot as workaround to 3.2 kernel problem? February 11, 2012 10:05AM |
Registered: 13 years ago Posts: 78 |
Re: Newer uBoot as workaround to 3.2 kernel problem? February 11, 2012 11:44AM |
Registered: 13 years ago Posts: 502 |
[ 0.000000] Linux version 3.3.0-rc3-kirkwood (davygravy@bitbaker64) (gcc version 4.6.1 (Sourcery CodeBench Lite 2011.09-70) ) #1 Sat Feb2
DockStar> fsload uboot-original-mtd0.kwb ### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x800000 Scanning JFFS2 FS: done. find_inode failed for name=uboot-original-mtd0.kwb load: Failed to find inode ### JFFS2 LOAD ERROR<0> for uboot-original-mtd0.kwb!
Re: Newer uBoot as workaround to 3.2 kernel problem? February 11, 2012 12:13PM |
Registered: 13 years ago Posts: 78 |
Re: Newer uBoot as workaround to 3.2 kernel problem? February 11, 2012 11:23PM |
Registered: 13 years ago Posts: 502 |
/* * max 4k env size is enough, but in case of nand * it has to be rounded to sector size */ #define CONFIG_ENV_SIZE 0x20000 /* 128k */ #define CONFIG_ENV_ADDR 0xc0000 #define CONFIG_ENV_OFFSET 0xc0000 /* env starts here */
/* * max 4k env size is enough, but in case of nand * it has to be rounded to sector size */ #define CONFIG_ENV_SIZE 0x20000 /* 128k */ #define CONFIG_ENV_ADDR 0x60000 #define CONFIG_ENV_OFFSET 0x60000 /* env starts here */
[ 18.709567] console [ttyS0] enabled [ 18.713806] ONFI flash detected [ 18.717066] ONFI param page 0 valid [ 18.720573] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08AAD) [ 18.728279] Scanning device for bad blocks [ 18.884449] 4 cmdlinepart partitions found on MTD device orion_nand [ 18.890758] Creating 4 MTD partitions on "orion_nand": [ 18.895931] 0x000000000000-0x000000100000 : "u-boot" [ 18.901479] 0x000000100000-0x000000500000 : "uImage" [ 18.907028] 0x000000500000-0x000002500000 : "rootfs" [ 18.912546] 0x000002500000-0x000010000000 : "data"Has this changed?
Robert Mugabe
Re: Newer uBoot as workaround to 3.2 kernel problem? February 12, 2012 08:28AM |
Re: Newer uBoot as workaround to 3.2 kernel problem? February 12, 2012 10:35AM |
Registered: 13 years ago Posts: 502 |
Re: Newer uBoot as workaround to 3.2 kernel problem? February 12, 2012 10:56AM |
Registered: 13 years ago Posts: 502 |
Re: Newer uBoot as workaround to 3.2 kernel problem? February 12, 2012 12:57PM |
Registered: 13 years ago Posts: 78 |
Re: Newer uBoot as workaround to 3.2 kernel problem? February 12, 2012 01:06PM |
Registered: 13 years ago Posts: 502 |
U-Boot 2011.12-06918-gf33b06f-dirty (Feb 12 2012 - 07:50:16) Seagate FreeAgent DockStar SoC: Kirkwood 88F6281_A0 DRAM: 128 MiB WARNING: Caches not enabled NAND: 256 MiB In: serial Out: serial Err: serial Net: egiga0 88E1116 Initialized on egiga0 Hit any key to stop autoboot: 0 u-boot>> tftp 0x800000 uboot.mtd0.dockstar.original.kwb Using egiga0 device TFTP from server 192.168.11.149; our IP address is 192.168.11.187 Filename 'uboot.mtd0.dockstar.original.kwb'. Load address: 0x800000 Loading: #################################### done Bytes transferred = 524288 (80000 hex) u-boot>> go 0x800200 ## Starting application at 0x00800200 ... U-Boot 1.1.4 (Jul 16 2009 - 21:02:16) Cloud Engines (3.4.16) U-Boot code: 00600000 -> 0067FFF0 BSS: -> 00690D60 Soc: 88F6281 A0 (DDR2) CPU running @ 1200Mhz L2 running @ 400Mhz SysClock = 400Mhz , TClock = 200Mhz DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6 DRAM CS[0] base 0x00000000 size 128MB DRAM Total size 128MB 16bit width Flash: 0 kB Addresses 8M - 0M are saved for the U-Boot usage. Mem malloc Initialization (8M - 7M): Done NAND:256 MB CPU : Marvell Feroceon (Rev 1) CLOUD ENGINES BOARD: REDSTONE:1.0 Streaming disabled Write allocate disabled USB 0: host mode PEX 0: interface detected no Link. Net: egiga0 [PRIME], egiga1 Hit any key to stop autoboot: 0 CE>> print baudrate=115200 loads_echo=0 ipaddr=169.254.254.253 serverip=169.254.254.254 rootpath=/mnt/ARM_FS/ netmask=255.255.0.0 run_diag=yes console=console=ttyS0,115200 CASset=min MALLOC_len=1 ethprime=egiga0 bootargs_root=root=/dev/mtdblock2 ro ethmtu=1500 usb0Mode=host nandEcc=1bit ethact=egiga0 ethaddr=00:10:75:1A:5B:73 cesvcid=BZT7Y9ERQFT3U2PKZAT7TDK7U6 ceserialno=2GEP0NGE ceboardver=REDSTONE:1.0 bootcmd=nand read.e 0x800000 0x100000 0x300000; setenv bootargs $(console) $(bootargs_root); bootm 0x800000 stdin=serial stdout=serial stderr=serial mainlineLinux=no enaMonExt=no enaCpuStream=no enaWrAllo=no pexMode=RC disL2Cache=no setL2CacheWT=yes disL2Prefetch=yes enaICPref=yes enaDCPref=yes sata_dma_mode=yes netbsd_en=no vxworks_en=no bootdelay=3 disaMvPnp=no Environment size: 762/131068 bytes CE>>