Hi, it almost works for me, but it fails to mount the root.
Here's the layout of the data drive:
$this->bbcode_second_pass_code('', '
Device Boot Start End Blocks Id System
/dev/sdd1 2048 14848 51204 83 Linux
/dev/sdd2 14849 57686529 230686724 83 Linux
/dev/sdd3 57686530 61049645 13452464 83 Linux
')
Accourding to the output of the kernel it tries to boot from /dev/sda1, but it should be /dev/sda2 IMO:
$this->bbcode_second_pass_code('', '
Stage-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: 2 1 0
Loading from device 0: 128MiB 3,3V 8-bit (offset 0x500000)
-- Using 1bit ECC style encoding
Image Name: Linux-2.6.31.6_SMP_820
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2159884 Bytes = 2.1 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: 2159884 Bytes = 2.1 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 (root@ProDev) (gcc version 4.6.0 20110429 (prerelease) (GCC) ) #100 SMP Sun May 29 04:53:45 EDT 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 (3692K code, 291K data, 124K 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.730000] SCSI subsystem initialized
[ 0.730000] usbcore: registered new interface driver usbfs
[ 0.740000] usbcore: registered new interface driver hub
[ 0.740000] usbcore: registered new device driver usb
[ 0.770000] NET: Registered protocol family 2
[ 0.770000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.780000] Switched to NOHz mode on CPU #0
[ 0.780000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.780000] Switched to NOHz mode on CPU #1
[ 0.790000] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.800000] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.800000] TCP reno registered
[ 0.810000] NET: Registered protocol family 1
[ 0.810000] Create fragment cache
[ 0.820000] fuse init (API version 7.12)
[ 0.820000] msgmni has been set to 245
[ 0.830000] alg: No test for stdrng (krng)
[ 0.840000] io scheduler noop registered
[ 0.840000] io scheduler anticipatory registered
[ 0.840000] io scheduler deadline registered
[ 0.850000] io scheduler cfq registered (default)
[ 0.870000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.880000] serial8250: ttyS0 at MMIO 0x44200000 (irq = 55) is a 16550A
[ 0.900000] brd: module loaded
[ 0.900000] loop: module loaded
[ 0.910000] ox820sata: OX820 sata core.
[ 0.910000] scsi0 : oxnassata
[ 0.920000] scsi1 : oxnassata
[ 0.920000] ata1: SATA max UDMA/133 irq 50
[ 0.920000] ata2: SATA max UDMA/133 irq 50
[ 0.930000] ox820sata: reseting SATA core
[ 1.450000] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 1.450000] ata1.00: ATA-8: HGST HTS725025A7E630, GHEOA420, max UDMA/133
[ 1.460000] ata1.00: 488397168 sectors, multi 16: LBA48 NCQ (depth 0/32)
[ 1.470000] ata1.00: configured for UDMA/133
[ 1.470000] ox820sata: reseting SATA core
[ 2.190000] ata2: SATA link down (SStatus 0 SControl 300)
[ 2.190000] scsi 0:0:0:0: Direct-Access ATA HGST HTS725025A7 GHEO PQ: 0 ANSI: 5
[ 2.200000] sd 0:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/232 GiB)
[ 2.210000] sd 0:0:0:0: [sda] 4096-byte physical blocks
[ 2.210000] sd 0:0:0:0: [sda] Write Protect is off
[ 2.220000] tun: Universal TUN/TAP device driver, 1.6
[ 2.220000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[ 2.220000] NAND: Page read time 40ms
[ 2.220000] NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (Hynix NAND 128MiB 3,3V 8-bit)
[ 2.220000] Scanning device for bad blocks
[ 2.250000] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 2.290000] Creating 2 MTD partitions on "NAND 128MiB 3,3V 8-bit":
[ 2.290000] 0x000000000000-0x000000e00000 : "boot"
[ 2.300000] sda:
[ 2.300000] 0x000000e00000-0x000008000000 : "rootfs"
[ 2.310000] UBI: attaching mtd2 to ubi0
[ 2.310000] UBI: physical eraseblock size: 131072 bytes (128 KiB)
[ 2.320000] UBI: logical eraseblock size: 129024 bytes
[ 2.320000] UBI: smallest flash I/O unit: 2048
[ 2.330000] UBI: sub-page size: 512
[ 2.330000] UBI: VID header offset: 512 (aligned 512)
[ 2.340000] UBI: data offset: 2048
[ 2.630000] sda1 sda2 sda3
[ 2.760000] UBI: attached mtd2 to ubi0
[ 2.760000] UBI: MTD device name: "rootfs"
[ 2.760000] UBI: MTD device size: 114 MiB
[ 2.770000] UBI: number of good PEBs: 912
[ 2.770000] UBI: number of bad PEBs: 0
[ 2.780000] UBI: max. allowed volumes: 128
[ 2.780000] UBI: wear-leveling threshold: 4096
[ 2.790000] UBI: number of internal volumes: 1
[ 2.790000] UBI: number of user volumes: 1
[ 2.800000] UBI: available PEBs: 0
[ 2.800000] UBI: total number of reserved PEBs: 912
[ 2.810000] UBI: number of PEBs reserved for bad PEB handling: 9
[ 2.810000] UBI: max/mean erase counter: 2/0
[ 2.820000] UBI: image sequence number: 0
[ 2.820000] UBI: background thread "ubi_bgt0d" started, PID 303
[ 2.820000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.820000] oxnas-ehci oxnas-ehci.0: OXNAS EHCI Host Controller
[ 2.820000] oxnas-ehci oxnas-ehci.0: new USB bus registered, assigned bus number 1
[ 2.850000] oxnas-ehci oxnas-ehci.0: irq 39, io mem 0x00000000
[ 2.850000] sd 0:0:0:0: [sda] Attached SCSI disk
[ 2.870000] oxnas-ehci oxnas-ehci.0: USB 0.0 started, EHCI 1.00
[ 2.870000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 2.880000] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.880000] usb usb1: Product: OXNAS EHCI Host Controller
[ 2.890000] usb usb1: Manufacturer: Linux 2.6.31.6_SMP_820 ehci_hcd
[ 2.900000] usb usb1: SerialNumber: usb
[ 2.900000] usb usb1: configuration #1 chosen from 1 choice
[ 2.910000] hub 1-0:1.0: USB hub found
[ 2.910000] hub 1-0:1.0: 2 ports detected
[ 2.920000] Initializing USB Mass Storage driver...
[ 2.920000] usbcore: registered new interface driver usb-storage
[ 2.930000] USB Mass Storage support registered.
[ 2.930000] mice: PS/2 mouse device common for all mice
[ 2.940000] TCP cubic registered
[ 2.940000] NET: Registered protocol family 10
[ 2.950000] NET: Registered protocol family 17
[ 2.950000] RPC: Registered udp transport module.
[ 2.960000] RPC: Registered tcp transport module.
[ 2.960000] List of all partitions:
[ 2.970000] 0800 244198584 sda driver: sd
[ 2.970000] 0801 6400 sda1
[ 2.980000] 0802 28835840 sda2
[ 2.980000] 0803 1681558 sda3
[ 2.980000] 1f00 131072 mtdblock0 (driver?)
[ 2.990000] 1f01 14336 mtdblock1 (driver?)
[ 2.990000] 1f02 116736 mtdblock2 (driver?)
[ 3.000000] No filesystem could mount root, tried: ext3
[ 3.000000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,1)
[ 3.010000] [<c002cbc0>] (unwind_backtrace+0x0/0xe0) from [<c02f5b18>] (panic+0x44/0x108)
[ 3.020000] [<c02f5b18>] (panic+0x44/0x108) from [<c0008fac>] (mount_block_root+0x244/0x294)
[ 3.030000] [<c0008fac>] (mount_block_root+0x244/0x294) from [<c00092c0>] (prepare_namespace+0x164/0x1bc)
[ 3.040000] [<c00092c0>] (prepare_namespace+0x164/0x1bc) from [<c0008c20>] (kernel_init+0x1a8/0x1e8)
[ 3.050000] [<c0008c20>] (kernel_init+0x1a8/0x1e8) from [<c00289c4>] (kernel_thread_exit+0x0/0x8)
[ 3.060000] CPU1: stopping
[ 3.060000] [<c002cbc0>] (unwind_backtrace+0x0/0xe0) from [<c0027398>] (do_IPI+0xec/0x160)
[ 3.070000] [<c0027398>] (do_IPI+0xec/0x160) from [<c0027af8>] (__irq_svc+0x38/0xc0)
[ 3.070000] Exception stack(0xc7843f90 to 0xc7843fd8)
[ 3.070000] 3f80: 00000001 00000000 c7843fd8 00000000
[ 3.070000] 3fa0: c7842000 c04012c4 c03e203c c7842000 00000000 410fb025 6001fd74 00000000
[ 3.070000] 3fc0: 7fffffff c7843fd8 c0028a1c c0028a20 60000013 ffffffff
[ 3.070000] [<c0027af8>] (__irq_svc+0x38/0xc0) from [<c0028a20>] (default_idle+0x24/0x28)
[ 3.070000] [<c0028a20>] (default_idle+0x24/0x28) from [<c0028be8>] (cpu_idle+0x6c/0xa4)
[ 3.120000] [<c0028be8>] (cpu_idle+0x6c/0xa4) from [<60008084>] (0x60008084)
')
Did I miss something, or how can I set the default boot option to sda2?
Cheers