Linux 2.6.28 Porting to Oxnas

This forum is for all other ARMv5 devices

Re: Linux 2.6.28 Porting to Oxnas

Postby WarheadsSE » Sun Jan 01, 2012 3:17 am

Great, you noticed that it was based on the 934 :) I will give it a shot when I get a chance.

Did you adjust the defconfig?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Linux 2.6.28 Porting to Oxnas

Postby ftcodes » Sun Jan 01, 2012 12:28 pm

I did not yet remove the config parameters from the kernel config if you mean that. I wanted first to get the source done.
And I did notice that chip name.
ftcodes
 
Posts: 49
Joined: Fri Dec 30, 2011 5:49 pm

Re: Linux 2.6.28 Porting to Oxnas

Postby WarheadsSE » Mon Jan 02, 2012 12:38 am

I built it:
- make ox820_pogoplug_defconfig
- make menuconfig & enable sata as a built-in
- make
- booted: sata didn't initialize.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Linux 2.6.28 Porting to Oxnas

Postby ftcodes » Mon Jan 02, 2012 12:42 am

So there is still some work to do on it. But since I had no ability yet to test, I did not expect it to work out of the box.

Have you had at least some dmesg lines about it?
ftcodes
 
Posts: 49
Joined: Fri Dec 30, 2011 5:49 pm

Re: Linux 2.6.28 Porting to Oxnas

Postby WarheadsSE » Mon Jan 02, 2012 2:06 am

$this->bbcode_second_pass_code('', '[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.1.0+ (root@) (gcc version 4.6.2 20111125 (prerelease) (GCC) ) #6 SMP Wed Dec 21 21:13:09 EST 2011
[ 0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5387f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing 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] PERCPU: Embedded 8 pages/cpu @c0666000 s9248 r8192 d15328 u32768
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: root=/dev/sda2 ubi.mtd=2,512 rootfstype=ext3 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 rootdelay=15 mem=128M poweroutage=yes
[ 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] allocated 524288 bytes of page_cgroup
[ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[ 0.000000] Memory: 128MB = 128MB total
[ 0.000000] Memory: 123824k/123824k available, 7248k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
[ 0.000000] vmalloc : 0xc8800000 - 0xed000000 ( 584 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0482000 (4584 kB)
[ 0.000000] .init : 0xc0482000 - 0xc04b1420 ( 190 kB)
[ 0.000000] .data : 0xc04b2000 - 0xc04da678 ( 162 kB)
[ 0.000000] .bss : 0xc04da69c - 0xc0562a8c ( 545 kB)
[ 0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:96 nr_irqs:96 96
[ 0.000000] OX820_RPS_init_irq: interrupts 64 to 96
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] console [ttyS0] enabled
[ 0.020000] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744)
[ 0.080000] pid_max: default: 32768 minimum: 301
[ 0.080000] Mount-cache hash table entries: 512
[ 0.090000] Initializing cgroup subsys cpuacct
[ 0.090000] Initializing cgroup subsys memory
[ 0.100000] Initializing cgroup subsys devices
[ 0.100000] Initializing cgroup subsys freezer
[ 0.110000] CPU: Testing write buffer coherency: ok
[ 0.110000] ftrace: allocating 13075 entries in 39 pages
[ 0.130000] Calibrating local timer... 424.98MHz.
[ 0.200000] platform_smp_prepare_cpus 33
[ 0.200000] hw perfevents: enabled with v6mpcore PMU driver, 3 counters available
[ 0.210000] CPU1: Booted secondary processor
[ 0.210000] CPU1: Unknown IPI message 0x1
[ 0.280000] Brought up 2 CPUs
[ 0.280000] SMP: Total of 2 processors activated (678.29 BogoMIPS).
[ 0.290000] devtmpfs: initialized
[ 0.290000] NET: Registered protocol family 16
[ 0.300000] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[ 0.300000] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.810000] PCIeA version/deviceID 082510b5
[ 0.810000] PCIeB version/deviceID 082510b5
[ 3.840000] ox820_pci_preinit() PCIEB link up timeout (00001814)
[ 3.840000] ox820_pcie_setup_resources() Enabling PCIe Pre-Emphasis
[ 3.850000] ox820_pciea_setup_resources() resource c7821c20
[ 3.850000] ox820_pciea_setup_resources() io: 0x4be00000 - 0x4befffff
[ 3.860000] ox820_pciea_setup_resources() non-pre: 0x48000000 - 0x49ffffff
[ 3.870000] ox820_pciea_setup_resources() pre: 0x4a000000 - 0x4bdfffff
[ 3.870000] PCI: bus0: Fast back to back transfers disabled
[ 3.880000] PCI: bus1: Fast back to back transfers enabled
[ 3.890000] pci 0000:00:00.0: BAR 0: assigned [mem 0x48000000-0x4800ffff]
[ 3.890000] pci 0000:00:00.0: BAR 0: set to [mem 0x48000000-0x4800ffff] (PCI address [0x48000000-0x4800ffff])
[ 3.910000] bio: create slab <bio-0> at 0
[ 3.910000] vgaarb: loaded
[ 3.910000] SCSI subsystem initialized
[ 3.920000] usbcore: registered new interface driver usbfs
[ 3.920000] usbcore: registered new interface driver hub
[ 3.930000] usbcore: registered new device driver usb
[ 3.940000] cfg80211: Calling CRDA to update world regulatory domain
[ 3.940000] Switching to clocksource rps-timer2
[ 3.970000] NET: Registered protocol family 2
[ 3.980000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 3.980000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 3.990000] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[ 4.000000] TCP: Hash tables configured (established 4096 bind 4096)
[ 4.000000] TCP reno registered
[ 4.010000] UDP hash table entries: 128 (order: 0, 4096 bytes)
[ 4.010000] UDP-Lite hash table entries: 128 (order: 0, 4096 bytes)
[ 4.020000] NET: Registered protocol family 1
[ 4.040000] msgmni has been set to 241
[ 4.040000] io scheduler noop registered
[ 4.050000] io scheduler deadline registered
[ 4.050000] io scheduler cfq registered (default)
[ 4.330000] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[ 4.350000] serial8250: ttyS0 at MMIO 0x44200000 (irq = 55) is a 16550A
[ 5.310000] Probing for Synopsis GMAC, unit 0
[ 5.310000] eth0: Tuning GMAC 0 RGMII timings
[ 5.320000] eth0: PHY is Realtek RTL8211D, type 0x001cc914
[ 5.320000] eth0: GMAC ver = 53, vendor ver = 18 at 0xed400000, IRQ 40
[ 5.330000] eth0: Found PHY at address 3, type 0x001cc914 -> 10/100/1000
[ 5.340000] eth0: Ethernet addr: 00:30:e0:00:00:00
[ 5.340000] PCI: enabling device 0000:00:00.0 (0140 -> 0142)
[ 5.350000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 5.360000] Initializing Oxnas-SoC USB Host Controller
[ 5.360000] oxnas-ehci oxnas-ehci.0: OXNAS EHCI
[ 5.370000] oxnas-ehci oxnas-ehci.0: new USB bus registered, assigned bus number 1
[ 5.400000] oxnas-ehci oxnas-ehci.0: irq 39, io mem 0x40200100
[ 5.420000] oxnas-ehci oxnas-ehci.0: USB 0.0 started, EHCI 1.00
[ 5.420000] hub 1-0:1.0: USB hub found
[ 5.430000] hub 1-0:1.0: 2 ports detected
[ 5.430000] Initializing USB Mass Storage driver...
[ 5.440000] usbcore: registered new interface driver usb-storage
[ 5.440000] USB Mass Storage support registered.
[ 5.450000] mousedev: PS/2 mouse device common for all mice
[ 5.450000] usbcore: registered new interface driver usbhid
[ 5.460000] usbhid: USB HID core driver
[ 5.460000] oprofile: using arm/mpcore
[ 5.470000] TCP cubic registered
[ 5.470000] NET: Registered protocol family 10
[ 5.480000] IPv6 over IPv4 tunneling driver
[ 5.490000] NET: Registered protocol family 17
[ 5.490000] Registering the dns_resolver key type
[ 5.500000] Waiting 15sec before mounting root device...
[ 5.750000] usb 1-1: new high speed USB device number 2 using oxnas-ehci
[ 5.900000] hub 1-1:1.0: USB hub found
[ 5.900000] hub 1-1:1.0: 4 ports detected
[ 6.190000] usb 1-1.4: new high speed USB device number 3 using oxnas-ehci
[ 6.470000] scsi0 : usb-storage 1-1.4:1.0
[ 9.580000] scsi 0:0:0:0: Direct-Access PNY USB 2.0 FD 4096 PQ: 0 ANSI: 0 CCS
[ 10.110000] sd 0:0:0:0: [sda] 7831552 512-byte logical blocks: (4.00 GB/3.73 GiB)
[ 10.130000] sd 0:0:0:0: [sda] Write Protect is off
[ 10.130000] sd 0:0:0:0: [sda] No Caching mode page present
[ 10.140000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 10.970000] sd 0:0:0:0: [sda] No Caching mode page present
[ 10.980000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 10.990000] sda: sda1
[ 12.260000] sd 0:0:0:0: [sda] No Caching mode page present
[ 12.260000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 12.270000] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 20.510000] VFS: Cannot open root device "sda2" or unknown-block(8,2)
')
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Linux 2.6.28 Porting to Oxnas

Postby ftcodes » Mon Jan 02, 2012 2:25 am

I added a line printing as follows:

sata_ox820.c: Initialization result %u at %u

to see at least something.

In a few days, I will let it run on my device and check what goes wrong. Maybe tons of printk.
ftcodes
 
Posts: 49
Joined: Fri Dec 30, 2011 5:49 pm

Re: Linux 2.6.28 Porting to Oxnas

Postby WarheadsSE » Mon Jan 02, 2012 4:08 am

If you closely, I copied the wrong file to my tftp :) (Dec 21)
Nice progress!
$this->bbcode_second_pass_code('', '## Booting image at 60500000 ...
Image Name: Linux-3.1.0+
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2595824 Bytes = 2.5 MB
Load Address: 60008000
Entry Point: 60008000
Verifying Checksum ... 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.1.0+ (root@) (gcc version 4.6.2 20111125 (prerelease) (GCC) ) #2 SMP Sun Jan 1 22:47:22 EST 2012
[ 0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5387f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing 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] PERCPU: Embedded 8 pages/cpu @c0696000 s9248 r8192 d15328 u32768
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: root=/dev/sda2 ubi.mtd=2,512 rootfstype=ext3 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 rootdelay=15 mem=128M poweroutage=yes
[ 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] allocated 524288 bytes of page_cgroup
[ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[ 0.000000] Memory: 128MB = 128MB total
[ 0.000000] Memory: 123632k/123632k available, 7440k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
[ 0.000000] vmalloc : 0xc8800000 - 0xed000000 ( 584 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc04ae000 (4760 kB)
[ 0.000000] .init : 0xc04ae000 - 0xc04df420 ( 198 kB)
[ 0.000000] .data : 0xc04e0000 - 0xc0509538 ( 166 kB)
[ 0.000000] .bss : 0xc050955c - 0xc0592844 ( 549 kB)
[ 0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:96 nr_irqs:96 96
[ 0.000000] OX820_RPS_init_irq: interrupts 64 to 96
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] console [ttyS0] enabled
[ 0.020000] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744)
[ 0.080000] pid_max: default: 32768 minimum: 301
[ 0.080000] Mount-cache hash table entries: 512
[ 0.090000] Initializing cgroup subsys cpuacct
[ 0.090000] Initializing cgroup subsys memory
[ 0.100000] Initializing cgroup subsys devices
[ 0.100000] Initializing cgroup subsys freezer
[ 0.110000] CPU: Testing write buffer coherency: ok
[ 0.110000] ftrace: allocating 13515 entries in 40 pages
[ 0.130000] Calibrating local timer... 424.85MHz.
[ 0.190000] platform_smp_prepare_cpus 33
[ 0.190000] hw perfevents: enabled with v6mpcore PMU driver, 3 counters available
[ 0.200000] CPU1: Booted secondary processor
[ 0.200000] CPU1: Unknown IPI message 0x1
[ 0.270000] Brought up 2 CPUs
[ 0.270000] SMP: Total of 2 processors activated (678.29 BogoMIPS).
[ 0.280000] devtmpfs: initialized
[ 0.280000] NET: Registered protocol family 16
[ 0.290000] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[ 0.290000] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.800000] PCIeA version/deviceID 082510b5
[ 0.800000] PCIeB version/deviceID 082510b5
[ 3.830000] ox820_pci_preinit() PCIEB link up timeout (00001814)
[ 3.830000] ox820_pcie_setup_resources() Enabling PCIe Pre-Emphasis
[ 3.840000] ox820_pciea_setup_resources() resource c7821c20
[ 3.840000] ox820_pciea_setup_resources() io: 0x4be00000 - 0x4befffff
[ 3.850000] ox820_pciea_setup_resources() non-pre: 0x48000000 - 0x49ffffff
[ 3.860000] ox820_pciea_setup_resources() pre: 0x4a000000 - 0x4bdfffff
[ 3.860000] PCI: bus0: Fast back to back transfers disabled
[ 3.870000] PCI: bus1: Fast back to back transfers enabled
[ 3.880000] pci 0000:00:00.0: BAR 0: assigned [mem 0x48000000-0x4800ffff]
[ 3.880000] pci 0000:00:00.0: BAR 0: set to [mem 0x48000000-0x4800ffff] (PCI address [0x48000000-0x4800ffff])
[ 3.900000] bio: create slab <bio-0> at 0
[ 3.900000] vgaarb: loaded
[ 3.910000] SCSI subsystem initialized
[ 3.910000] usbcore: registered new interface driver usbfs
[ 3.920000] usbcore: registered new interface driver hub
[ 3.920000] usbcore: registered new device driver usb
[ 3.930000] cfg80211: Calling CRDA to update world regulatory domain
[ 3.930000] Switching to clocksource rps-timer2
[ 3.960000] NET: Registered protocol family 2
[ 3.970000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 3.980000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 3.980000] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[ 3.990000] TCP: Hash tables configured (established 4096 bind 4096)
[ 4.000000] TCP reno registered
[ 4.000000] UDP hash table entries: 128 (order: 0, 4096 bytes)
[ 4.010000] UDP-Lite hash table entries: 128 (order: 0, 4096 bytes)
[ 4.010000] NET: Registered protocol family 1
[ 4.030000] msgmni has been set to 241
[ 4.040000] io scheduler noop registered
[ 4.040000] io scheduler deadline registered
[ 4.040000] io scheduler cfq registered (default)
[ 4.320000] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[ 4.340000] serial8250: ttyS0 at MMIO 0x44200000 (irq = 55) is a 16550A
[ 5.310000] Loading iSCSI transport class v2.0-870.
[ 5.310000] iscsi: registered transport (tcp)
[ 5.320000] ox820sata: OX820 sata core.
[ 5.320000] scsi0 : oxnassata
[ 5.330000] scsi1 : oxnassata
[ 5.330000] ata1: SATA max UDMA/133 irq 50
[ 5.330000] ata2: SATA max UDMA/133 irq 50
[ 5.340000] Probing for Synopsis GMAC, unit 0
[ 5.340000] eth0: Tuning GMAC 0 RGMII timings
[ 5.350000] eth0: PHY is Realtek RTL8211D, type 0x001cc914
[ 5.350000] eth0: GMAC ver = 53, vendor ver = 18 at 0xed400000, IRQ 40
[ 5.360000] eth0: Found PHY at address 3, type 0x001cc914 -> 10/100/1000
[ 5.370000] eth0: Ethernet addr: 00:30:e0:00:00:00
[ 5.370000] PCI: enabling device 0000:00:00.0 (0140 -> 0142)
[ 5.380000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 5.390000] Initializing Oxnas-SoC USB Host Controller
[ 5.390000] oxnas-ehci oxnas-ehci.0: OXNAS EHCI
[ 5.400000] oxnas-ehci oxnas-ehci.0: new USB bus registered, assigned bus number 1
[ 5.430000] oxnas-ehci oxnas-ehci.0: irq 39, io mem 0x40200100
[ 5.450000] oxnas-ehci oxnas-ehci.0: USB 0.0 started, EHCI 1.00
[ 5.450000] hub 1-0:1.0: USB hub found
[ 5.460000] hub 1-0:1.0: 2 ports detected
[ 5.460000] Initializing USB Mass Storage driver...
[ 5.470000] usbcore: registered new interface driver usb-storage
[ 5.470000] USB Mass Storage support registered.
[ 5.480000] mousedev: PS/2 mouse device common for all mice
[ 5.480000] usbcore: registered new interface driver usbhid
[ 5.490000] usbhid: USB HID core driver
[ 5.490000] oprofile: using arm/mpcore
[ 5.500000] TCP cubic registered
[ 5.500000] NET: Registered protocol family 10
[ 5.510000] IPv6 over IPv4 tunneling driver
[ 5.520000] NET: Registered protocol family 17
[ 5.520000] Waiting 15sec before mounting root device...
[ 5.780000] usb 1-1: new high speed USB device number 2 using oxnas-ehci
[ 5.850000] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 5.850000] ox820sata_qc_issue: Core busy, returning an error.
[ 5.930000] hub 1-1:1.0: USB hub found
[ 5.930000] hub 1-1:1.0: 4 ports detected
[ 6.040000] ata1.00: failed to IDENTIFY (I/O error, err_mask=0x100)
[ 11.360000] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 11.400000] ata1.00: ATA-7: WDC WD800BEVS-75RST0, 04.01G04, max UDMA/133
[ 11.400000] ata1.00: 156301488 sectors, multi 0: LBA48
[ 11.440000] ata1.00: configured for UDMA/133
[ 11.440000] scsi 0:0:0:0: Direct-Access ATA WDC WD800BEVS-75 04.0 PQ: 0 ANSI: 5
[ 11.450000] sd 0:0:0:0: [sda] 156301488 512-byte logical blocks: (80.0 GB/74.5 GiB)
[ 11.460000] sd 0:0:0:0: [sda] Write Protect is off
[ 11.460000] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 11.480000] sda: sda1 sda2
[ 11.490000] sd 0:0:0:0: [sda] Attached SCSI disk
[ 11.800000] ata2: SATA link down (SStatus 0 SControl 300)
[ 20.900000] kjournald starting. Commit interval 5 seconds
[ 20.910000] EXT3-fs (sda2): using internal journal
[ 20.910000] EXT3-fs (sda2): mounted filesystem with ordered data mode
[ 20.920000] VFS: Mounted root (ext3 filesystem) on device 8:2.
[ 20.960000] devtmpfs: mounted
[ 20.960000] Freeing init memory: 196K
INIT: version 2.88 booting

> Arch Linux ARM

> http://www.archlinuxarm.org

------------------------------
:: Mounting Root Read-Only [BUSY] [ 22.250000] EXT3-fs (sda2): error: cannot change data mode on remount. The filesystem is mounted in data=ordered mode and you try to remount it in data=writeback mode.
[FAIL]
:: Adjusting system time and setting kernel timezone [DONE]
:: Starting UDev Daemon [BUSY] [ 22.780000] udevd[76]: starting version 175
[DONE]
:: Triggering UDev uevents [DONE]
:: Loading Modules [FAIL]
:: Waiting for UDev uevents to be processed [BUSY] [ 24.130000] EXT3-fs (sda1): error: can't find ext3 filesystem on dev sda1.
[ 24.180000] EXT2-fs (sda1): error: can't find an ext2 filesystem on dev sda1.
[DONE]
:: Bringing up loopback interface [DONE]
:: Checking Filesystems [DONE]
:: Remounting Root Read/Write [BUSY] [ 25.440000] EXT3-fs (sda2): error: cannot change data mode on remount. The filesystem is mounted in data=ordered mode and you try to remount it in data=writeback mode.
[FAIL]
:: Creating mtab [DONE]
:: Mounting Local Filesystems [DONE]
:: Activating Swap [DONE]
:: Configuring Time Zone [DONE]
:: Initializing Random Seed [DONE]
:: Removing Leftover Files [DONE]
:: Setting Hostname: hunchback [DONE]
:: Setting Locale: en_US.UTF-8 [DONE]
:: Setting Consoles to UTF-8 mode [DONE]
:: Loading Keyboard Map: us [DONE]
:: Saving dmesg Log [DONE]
INIT: Entering runlevel: 3
:: Setting MAC address [BUSY] FATAL: Module bootled_module not found.
AMBER
GREEN
[ 28.160000] eth0: PHY is Realtek RTL8211D, type 0x001cc914
[ 28.170000] Offload is not active on eth0
[ 28.170000] Alloc'ing ARM descs 10240 bytes
[ 28.180000] eth0: Resetting GMAC
[ 28.180000] eth0: GMAC reset complete
[ 28.190000] eth0: Setting Rx flow control thresholds for LAN port
[ 31.200000] ADDRCONF(NETDEV_UP): eth0: link is not ready
[DONE]
:: Starting Syslog-NG [DONE]
[ 32.190000] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Warning: Your network settings are deprecated.
Please refer to /etc/rc.conf on how to define a single wired
connection, or use a utility such as netcfg.
:: Starting Network [DONE]
:: Mounting Network Filesystems [DONE]
:: Starting crond daemon [DONE]
:: Starting Secure Shell Daemon [DONE]
:: Starting OpenNTPD [DONE]

Arch Linux 3.1.0+ (hunchback) (ttyS0)

hunchback login: root
Password:
Last login: Sun Jan 1 23:12:30 EST 2012 on ttyS0
[root@hunchback ~]# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
[root@hunchback ~]# cat /proc/partitions
major minor #blocks name

8 0 78150744 sda
8 1 10240 sda1
8 2 78139480 sda2
')

I had to remove my use drive though, otherwise this happened:
$this->bbcode_second_pass_code('', '[ 0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:96 nr_irqs:96 96
[ 0.000000] OX820_RPS_init_irq: interrupts 64 to 96
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] console [ttyS0] enabled
[ 0.020000] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744)
[ 0.080000] pid_max: default: 32768 minimum: 301
[ 0.080000] Mount-cache hash table entries: 512
[ 0.090000] Initializing cgroup subsys cpuacct
[ 0.090000] Initializing cgroup subsys memory
[ 0.100000] Initializing cgroup subsys devices
[ 0.100000] Initializing cgroup subsys freezer
[ 0.110000] CPU: Testing write buffer coherency: ok
[ 0.110000] ftrace: allocating 13515 entries in 40 pages
[ 0.130000] Calibrating local timer... 424.86MHz.
[ 0.190000] platform_smp_prepare_cpus 33
[ 0.190000] hw perfevents: enabled with v6mpcore PMU driver, 3 counters available
[ 0.200000] CPU1: Booted secondary processor
[ 0.200000] CPU1: Unknown IPI message 0x1
[ 0.260000] Brought up 2 CPUs
[ 0.260000] SMP: Total of 2 processors activated (678.29 BogoMIPS).
[ 0.270000] devtmpfs: initialized
[ 0.270000] NET: Registered protocol family 16
[ 0.280000] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[ 0.280000] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.790000] PCIeA version/deviceID 082510b5
[ 0.790000] PCIeB version/deviceID 082510b5
[ 3.820000] ox820_pci_preinit() PCIEB link up timeout (00001814)
[ 3.820000] ox820_pcie_setup_resources() Enabling PCIe Pre-Emphasis
[ 3.830000] ox820_pciea_setup_resources() resource c7821c20
[ 3.830000] ox820_pciea_setup_resources() io: 0x4be00000 - 0x4befffff
[ 3.840000] ox820_pciea_setup_resources() non-pre: 0x48000000 - 0x49ffffff
[ 3.850000] ox820_pciea_setup_resources() pre: 0x4a000000 - 0x4bdfffff
[ 3.850000] PCI: bus0: Fast back to back transfers disabled
[ 3.860000] PCI: bus1: Fast back to back transfers enabled
[ 3.870000] pci 0000:00:00.0: BAR 0: assigned [mem 0x48000000-0x4800ffff]
[ 3.870000] pci 0000:00:00.0: BAR 0: set to [mem 0x48000000-0x4800ffff] (PCI address [0x48000000-0x4800ffff])
[ 3.890000] bio: create slab <bio-0> at 0
[ 3.890000] vgaarb: loaded
[ 3.900000] SCSI subsystem initialized
[ 3.900000] usbcore: registered new interface driver usbfs
[ 3.910000] usbcore: registered new interface driver hub
[ 3.910000] usbcore: registered new device driver usb
[ 3.920000] cfg80211: Calling CRDA to update world regulatory domain
[ 3.920000] Switching to clocksource rps-timer2
[ 3.950000] NET: Registered protocol family 2
[ 3.960000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 3.970000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 3.970000] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[ 3.980000] TCP: Hash tables configured (established 4096 bind 4096)
[ 3.990000] TCP reno registered
[ 3.990000] UDP hash table entries: 128 (order: 0, 4096 bytes)
[ 4.000000] UDP-Lite hash table entries: 128 (order: 0, 4096 bytes)
[ 4.000000] NET: Registered protocol family 1
[ 4.020000] msgmni has been set to 241
[ 4.030000] io scheduler noop registered
[ 4.030000] io scheduler deadline registered
[ 4.040000] io scheduler cfq registered (default)
[ 4.310000] Serial: 8250/16550 driver, 32 ports, IRQ sharing enabled
[ 4.330000] serial8250: ttyS0 at MMIO 0x44200000 (irq = 55) is a 16550A
[ 5.300000] Loading iSCSI transport class v2.0-870.
[ 5.300000] iscsi: registered transport (tcp)
[ 5.310000] ox820sata: OX820 sata core.
[ 5.310000] scsi0 : oxnassata
[ 5.320000] scsi1 : oxnassata
[ 5.320000] ata1: SATA max UDMA/133 irq 50
[ 5.320000] ata2: SATA max UDMA/133 irq 50
[ 5.330000] Probing for Synopsis GMAC, unit 0
[ 5.330000] eth0: Tuning GMAC 0 RGMII timings
[ 5.340000] eth0: PHY is Realtek RTL8211D, type 0x001cc914
[ 5.340000] eth0: GMAC ver = 53, vendor ver = 18 at 0xed400000, IRQ 40
[ 5.350000] eth0: Found PHY at address 3, type 0x001cc914 -> 10/100/1000
[ 5.360000] eth0: Ethernet addr: 00:30:e0:00:00:00
[ 5.360000] PCI: enabling device 0000:00:00.0 (0140 -> 0142)
[ 5.370000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 5.380000] Initializing Oxnas-SoC USB Host Controller
[ 5.380000] oxnas-ehci oxnas-ehci.0: OXNAS EHCI
[ 5.390000] oxnas-ehci oxnas-ehci.0: new USB bus registered, assigned bus number 1
[ 5.420000] oxnas-ehci oxnas-ehci.0: irq 39, io mem 0x40200100
[ 5.440000] oxnas-ehci oxnas-ehci.0: USB 0.0 started, EHCI 1.00
[ 5.440000] hub 1-0:1.0: USB hub found
[ 5.450000] hub 1-0:1.0: 2 ports detected
[ 5.450000] Initializing USB Mass Storage driver...
[ 5.460000] usbcore: registered new interface driver usb-storage
[ 5.460000] USB Mass Storage support registered.
[ 5.470000] mousedev: PS/2 mouse device common for all mice
[ 5.470000] usbcore: registered new interface driver usbhid
[ 5.480000] usbhid: USB HID core driver
[ 5.480000] oprofile: using arm/mpcore
[ 5.490000] TCP cubic registered
[ 5.490000] NET: Registered protocol family 10
[ 5.500000] IPv6 over IPv4 tunneling driver
[ 5.510000] NET: Registered protocol family 17
[ 5.510000] Waiting 15sec before mounting root device...
[ 5.770000] usb 1-1: new high speed USB device number 2 using oxnas-ehci
[ 5.840000] a[ 9.500000] scsi 2:0:0:0: Direct-Access PNY USB 2.0 FD 4096 PQ: 0 ANSI: 0 CCS
[ 10.550000] sd 2:0:0:0: [sda] 7831552 512-byte logical blocks: (4.00 GB/3.73 GiB)
[ 10.560000] sd 2:0:0:0: [sda] Write Protect is off
[ 10.570000] sd 2:0:0:0: [sda] No Caching mode page present
[ 10.570000] sd 2:0:0:0: [sda] Assuming drive cache: write through
[ 11.350000] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[ 11.390000] ata1.00: ATA-7: WDC WD800BEVS-75RST0, 04.01G04, max UDMA/133
[ 11.390000] ata1.00: 156301488 sectors, multi 0: LBA48
[ 11.430000] ata1.00: configured for UDMA/133
[ 11.430000] scsi 0:0:0:0: Direct-Access ATA WDC WD800BEVS-75 04.0 PQ: 0 ANSI: 5
[ 11.440000] sd 0:0:0:0: [sdb] 156301488 512-byte logical blocks: (80.0 GB/74.5 GiB)
[ 11.450000] sd 0:0:0:0: [sdb] Write Protect is off
[ 11.450000] sd 0:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 11.470000] sdb: sdb1 sdb2
[ 11.480000] sd 0:0:0:0: [sdb] Attached SCSI disk
[ 11.630000] sd 2:0:0:0: [sda] No Caching mode page present
[ 11.630000] sd 2:0:0:0: [sda] Assuming drive cache: write through
[ 11.640000] sda: sda1
[ 11.800000] ata2: SATA link down (SStatus 0 SControl 300)
[ 12.580000] sd 2:0:0:0: [sda] No Caching mode page present
[ 12.580000] sd 2:0:0:0: [sda] Assuming drive cache: write through
[ 12.590000] sd 2:0:0:0: [sda] Attached SCSI removable disk
[ 20.530000] VFS: Cannot open root device "sda2" or unknown-block(8,2)
[ 20.530000] Please append a correct "root=" boot option; here are the available partitions:
[ 20.540000] 0800 3915776 sda driver: sd
[ 20.550000] 0801 3914752 sda1 00000000-0000-0000-0000-000000000sda1
[ 20.550000] 0810 78150744 sdb driver: sd
[ 20.560000] 0811 10240 sdb1 00000000-0000-0000-0000-000000000sdb1
[ 20.560000] 0812 78139480 sdb2 00000000-0000-0000-0000-000000000sdb2
[ 20.570000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,2)')
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Linux 2.6.28 Porting to Oxnas

Postby ftcodes » Mon Jan 02, 2012 12:18 pm

That looks like a nice beginning of a more clean version of that driver. ;)
Detection seems to be okay, so stability testing has to be done and probably some fixing.

The kernel I used as a basis was from the Medion which had some stuff that did not exist in the other versions. When I compared them, it looked like Medion had the newest variant of those patches. Especially, due to the fact that they delivered working XFS support with that PLX hacked stuff.

In addition, I cleaned up the initialization (double module_init changed to single module_init).

Looks like USB got precedence over SATA but that can be solved by using disk uuid reference. The sd* naming scheme is not so predictable.
ftcodes
 
Posts: 49
Joined: Fri Dec 30, 2011 5:49 pm

Re: Linux 2.6.28 Porting to Oxnas

Postby WarheadsSE » Mon Jan 02, 2012 2:02 pm

There are some issues with UUID:
- Cant it can change from install to install/format?

The goal is to get this all working, then bring it into the ALARM mainline, and get kexec & all the rest of support. Then, I will nuild a kexecboot kernel that will be able to boot from USB/SATA
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Linux 2.6.28 Porting to Oxnas

Postby ftcodes » Mon Jan 02, 2012 2:10 pm

Did you get the Ethernet driver clean?

An installed system can be changed from sdX references to UUID. The only thing you need is to extract the UUID references.
Typical references for that are /dev/disk/by-uuid/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.

AFAIK, Linux accepts that modification without any reinstall.

You can call tune2fs -l /dev/sda2 on ext2/3/4. Similar calls should exist for other filesystems.
The Filesystem UUID is used for that type of reference.

An example for it:
In the output you find following:

Filesystem UUID: 12345678-1234-1234-1234-123456789abc

Then the reference would be:
/dev/disk/by-uuid/12345678-1234-1234-1234-123456789abc


"Bring it to mainline"
That is the idea why I cleaned that thing up.


IMHO the moving of Kconfig parameter into module parameter should be done on the ehci-oxnas driver as well. If there are some in the Ethernet driver it should be done too. Maybe not all work out but at least the ones that change with particular boards.
ftcodes
 
Posts: 49
Joined: Fri Dec 30, 2011 5:49 pm

PreviousNext

Return to Community Supported

Who is online

Users browsing this forum: No registered users and 38 guests