by DocTauri » Sun Nov 25, 2012 3:19 pm
Ok, I ebay'd a USB-TTL board and hooked it up. Here's my boot output
$this->bbcode_second_pass_quote('', 'S')tage-1 Bootloader XCE_STAGE1: 1.1: Tue Feb 8 01:40:26 PST 2011
Attempting to set PLLA to 700MHz ...
plla_ctrl0 : 0x0000000A
plla_ctrl1 : 0x000E0000
plla_ctrl2 : 0x001C01A0
plla_ctrl3 : 0x00000016
PLLA Set
Setup memory, testing
Reading NAND, Image 0
Hdr len: 0x0001C030
Hdr CRC: 0x39F6D832
OK
U-Boot 1.1.2 (Jul 29 2010 - 19:36:07)
U-Boot code: 60D00000 -> 60D1C030 BSS: -> 60D21800
RAM Configuration:
Bank #0: 60000000 128 MB
SRAM Configuration:
64KB at 0x50000000
NAND:128 MiB
In: serial
Out: serial
Err: serial
Setting Linux mem= boot arg value
Hit any key to stop autoboot: 0
Loading from device 0: 128MiB 3,3V 8-bit (offset 0x200000)
-- Using 1bit ECC style encoding
Image Name: Linux-2.6.31.6_SMP_820
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2258192 Bytes = 2.2 MB
Load Address: 60008000
Entry Point: 60008000
## Booting image at 60500000 ...
Image Name: Linux-2.6.31.6_SMP_820
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2258192 Bytes = 2.2 MB
Load Address: 60008000
Entry Point: 60008000
Verifying Checksum ... OK
OK
Starting kernel ...
Uncompressing Linux................................................................................................................................... done, booting the kernel.
[ 0.000000] Linux version 2.6.31.6_SMP_820 (bdietrich@brad-ux) (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) ) #96 SMP Tue Feb 8 12:08:54 PST 2011
[ 0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5387f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 0.000000] Machine: Oxsemi NAS
[ 0.000000] 1 memory region
[ 0.000000] Ignoring unrecognised tag 0x00000000
[ 0.000000] Memory policy: ECC disabled, Data cache writealloc
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: root=/dev/sda1 ubi.mtd=2,512 rootfstype=ext3 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 rootwait mem=128M poweroutage=yes
[ 0.000000] PID hash table entries: 512 (order: 9, 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: 125496KB available (3712K code, 275K data, 120K init, 0K highmem)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:96
[ 0.000000] OX820_RPS_init_irq: interrupts 64 to 96
[ 0.010000] Console: colour dummy device 80x30
[ 0.010000] console [ttyS0] enabled
[ 0.020000] Calibrating delay loop... 279.34 BogoMIPS (lpj=1396736)
[ 0.260000] Security Framework initialized
[ 0.260000] Mount-cache hash table entries: 512
[ 0.270000] CPU: Testing write buffer coherency: ok
[ 0.270000] Calibrating local timer... 349.99MHz.
[ 0.340000] CPU1: Booted secondary processor
[ 0.440000] Calibrating delay loop... 279.34 BogoMIPS (lpj=1396736)
[ 0.670000] Brought up 2 CPUs
[ 0.680000] SMP: Total of 2 processors activated (558.69 BogoMIPS).
[ 0.690000] NET: Registered protocol family 16
[ 0.690000] Number of DMA channels = 4, version = 4
[ 0.700000] Reserving a DMA channel for DirectRAID
[ 0.700000] Allocating 389 SRAM generic DMA descriptors
[ 0.720000] bio: create slab <bio-0> at 0
[ 0.720000] SCSI subsystem initialized
[ 0.750000] NET: Registered protocol family 2
[ 0.750000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.760000] Switched to NOHz mode on CPU #0
[ 0.760000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.760000] Switched to NOHz mode on CPU #1
[ 0.770000] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.780000] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.780000] TCP reno registered
[ 0.790000] NET: Registered protocol family 1
[ 0.790000] Create fragment cache
[ 0.800000] fuse init (API version 7.12)
[ 0.800000] msgmni has been set to 245
[ 0.810000] alg: No test for stdrng (krng)
[ 0.810000] io scheduler noop registered
[ 0.820000] io scheduler anticipatory registered
[ 0.820000] io scheduler deadline registered
[ 0.830000] io scheduler cfq registered (default)
[ 0.850000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.860000] serial8250: ttyS0 at MMIO 0x44200000 (irq = 55) is a 16550A
[ 0.870000] brd: module loaded
[ 0.880000] loop: module loaded
[ 0.890000] ox820sata: OX820 sata core.
[ 0.890000] scsi0 : oxnassata
[ 0.890000] scsi1 : oxnassata
[ 0.900000] ata1: SATA max UDMA/133 irq 50
[ 0.900000] ata2: SATA max UDMA/133 irq 50
[ 0.910000] ox820sata: reseting SATA core
[ 1.270000] ata1: SATA link down (SStatus 0 SControl 300)
[ 1.270000] ox820sata: reseting SATA core
[ 1.630000] ata2: SATA link down (SStatus 0 SControl 300)
[ 1.630000] tun: Universal TUN/TAP device driver, 1.6
[ 1.640000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 1.640000] NAND: Page read time 40ms
[ 1.650000] NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (Hynix NAND 128MiB 3,3V 8-bit)
[ 1.660000] Scanning device for bad blocks
[ 1.700000] Bad eraseblock 653 at 0x0000051a0000
[ 1.730000] Bad eraseblock 954 at 0x000007740000
[ 1.740000] Creating 2 MTD partitions on "NAND 128MiB 3,3V 8-bit":
[ 1.750000] 0x000000000000-0x000000e00000 : "boot"
[ 1.750000] 0x000000e00000-0x000008000000 : "rootfs"
[ 1.760000] UBI: attaching mtd2 to ubi0
[ 1.760000] UBI: physical eraseblock size: 131072 bytes (128 KiB)
[ 1.770000] UBI: logical eraseblock size: 129024 bytes
[ 1.770000] UBI: smallest flash I/O unit: 2048
[ 1.780000] UBI: sub-page size: 512
[ 1.780000] UBI: VID header offset: 512 (aligned 512)
[ 1.790000] UBI: data offset: 2048
[ 2.200000] UBI: attached mtd2 to ubi0
[ 2.200000] UBI: MTD device name: "rootfs"
[ 2.210000] UBI: MTD device size: 114 MiB
[ 2.210000] UBI: number of good PEBs: 910
[ 2.220000] UBI: number of bad PEBs: 2
[ 2.220000] UBI: max. allowed volumes: 128
[ 2.220000] UBI: wear-leveling threshold: 4096
[ 2.230000] UBI: number of internal volumes: 1
[ 2.230000] UBI: number of user volumes: 1
[ 2.240000] UBI: available PEBs: 0
[ 2.240000] UBI: total number of reserved PEBs: 910
[ 2.250000] UBI: number of PEBs reserved for bad PEB handling: 9
[ 2.250000] UBI: max/mean erase counter: 2/0
[ 2.260000] UBI: image sequence number: 0
[ 2.260000] UBI: background thread "ubi_bgt0d" started, PID 275
[ 2.270000] mice: PS/2 mouse device common for all mice
[ 2.270000] TCP cubic registered
[ 2.280000] NET: Registered protocol family 10
[ 2.280000] NET: Registered protocol family 17
[ 2.290000] RPC: Registered udp transport module.
[ 2.290000] RPC: Registered tcp transport module.
[ 2.300000] Waiting for root device /dev/sda1...
/dev/sda1 is plugged in, and if I plug it into an Ubuntu box, it appears to be valid and working, so I'm not sure why it just stops at this point.
Perhaps the restore script altered some boot parms? Printenv shows this
$this->bbcode_second_pass_quote('', 'b')ootdelay=2
baudrate=115200
autoload=n
netmask=255.255.0.0
bootfile="uImage"
kernflmode=s
load_nand=nboot 60500000 0 200000
load_nand2=nboot 60500000 0 800000
boot=bootm 60500000
boot_nand=run load_nand boot || run load_nand2 boot
ethaddr=00:25:31:02:50:BF
cesvcid=QDDRF4TYWYMNAMPEW3YBRPPHR6
ceboardver=PPV3
serverip=192.168.1.20
ipaddr=192.168.1.122
load_custom_nand2=nboot 60500000 0 B00000
bootcmd=run boot_nand
stdin=serial
stdout=serial
stderr=serial
bootargs=root=/dev/sda1 ubi.mtd=2,512 rootfstype=ext3 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 rootwait mem=128M poweroutage=yes
Environment size: 616/131068 bytes