• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: [1]
1  Linux Stuff / Kernel / Updated sheeva u-boot with FDT on: October 19, 2013, 04:23:14 PM
Updated u-boot 2013.10 final attached, flash like so:
copy to fat16 usb stick
in existing console:
usb start
fatload usb 0 0x800000 u-boot.kwb
nand erase 0x0 0x80000
nand write 0x0800000 0x0 0x80000

Build instructions and patches for the built binary from https://doukki.net/doku.php?id=wiki:tutoriels:uboot.howto
Code:
Marvell>> version

U-Boot 2013.10 (Oct 20 2013 - 09:13:23)
Marvell-Sheevaplug - eSATA - SD/MMC
arm-none-linux-gnueabi-gcc (GCC) 4.2.1
GNU ld (GNU Binutils) 2.18.50.20070820

Note you'll want to set the nand sizes differently to the default if you wish to access it via linux.  Here's my env that handles the debian stock and cbxbiker kernels without modification from SD:
Code:
baudrate=115200
bootargs=console=ttyS0,115200n8 earlyprintk mtdparts=orion_nand:512k(uboot),128k(uboot_env),11m@1m(kernel),-@12m(rootfs) root=/dev/mmcblk0p2 rootdelay=5
bootcmd=run x_bootcmd; run z_bootstrap; reset;
bootdelay=3
console=console=ttyS0,115200n8
ethact=egiga0
ethaddr=00:50:43:01:D0:7B
filesize=6da04
initrdaddr=0x01100000
initrdfile=/uInitrd
kerneladdr=0x00800000
kernelfile=/uImage
loadcmd=ext2load mmc 0:1
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:512k(uboot),128k(uboot_env),11m@1m(kernel),-@12m(rootfs)
scriptaddr=0x00800000
scriptfile=/boot/boot.scr
stderr=serial
stdin=serial
stdout=serial
x_bootargs=console=ttyS0,115200n8 earlyprintk mtdparts=orion_nand:512k(uboot),128k(uboot_env),11m@1m(kernel),-@12m(rootfs)
x_bootargs_root=root=/dev/mmcblk0p2 rootdelay=5
x_bootcmd=${x_bootcmd_kernel}; setenv bootargs ${x_bootargs} ${x_bootargs_root}; run z_bootinit;
x_bootcmd_kernel=echo ====== BootStrap start ======
x_bootcmd_mtd=nand read.e ${kerneladdr} kernel 0x00b00000;
x_bootstrap_cmd=for device in "mmc"; do for fs in "ext2"; do setenv loadcmd "${fs}load ${device} 0:1"; if ${loadcmd} ${kerneladdr} ${kernelfile}; then; if ${loadcmd} ${initrdaddr} ${initrdfile}; then; run z_bootcmd; fi; fi; done; done;
z_bootcmd=if imi ${kerneladdr}; then; bootm ${kerneladdr} ${initrdaddr}; else; echo --- next bootcmd device try ---; fi;
z_bootfail=echo ====== BootStrap end ======
z_bootinit=mmc rescan; usb reset; ide reset;
z_bootstrap=run z_bootinit; run x_bootstrap_scr; run x_bootstrap_cmd; run x_bootcmd_mtd; run z_bootfail;

Environment size: 1612/131068 bytes

I've also compiled netconsole in (untested).

Stuff added to include/configs/sheevaplug.h:
Code:
#define CONFIG_OF_LIBFDT
#define CONFIG_SYS_CONSOLE_IS_IN_ENV 1
#define CONFIG_CMD_NET
#define CONFIG_CMD_CONSOLE
#define CONFIG_CMD_DNS

2  Linux Stuff / Kernel / Re: 3.9.0+ Device-tree kernels on: October 02, 2013, 04:02:43 AM
Tested and confirmed working.  Thanks!
3  Linux Stuff / Kernel / Re: 3.9.0+ Device-tree kernels on: September 26, 2013, 12:11:56 AM
This is what my dmesg log now shows for booting that 3.10.6 kernel:
Quote
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled

Great work!  Can't wait to see this included in cbxbiker's build.

I guess I should see if I can find the patches to add trim support to the sd card driver so we can make our sd cards last a bit longer. (for sandisk at least!)
4  Linux Stuff / Kernel / Re: 3.9.0+ Device-tree kernels on: September 24, 2013, 11:30:22 PM
It's not happy on Debian 7 x64:

I added the missing patch, not a terribly important patch for compiling the kernel.


Code:
--2013-09-25 16:28:06--  http://www.xilka.com/xilka/source/patches/BinUtils-2.23.2-Add-supports-of-the-Marvell-PJ4-core.patch
Resolving www.xilka.com (www.xilka.com)... 108.62.185.77
Connecting to www.xilka.com (www.xilka.com)|108.62.185.77|:80... connected.
HTTP request sent, awaiting response... 502 Bad Gateway
2013-09-25 16:28:07 ERROR 502: Bad Gateway.

The server behind your nginx has fallen over now?
 Shocked
5  Linux Stuff / Kernel / Re: 3.9.0+ Device-tree kernels on: September 24, 2013, 01:55:36 AM
This is my latest script for building my cross-compilers.
When it finishes it will create CrossArm-* which you can extract
in the root directory...that will place the cross compiler in
/opt/cross/armv*.

http://www.xilka.com/xilka/source/BuildCrossArm-4.8-2013.09.sh


It's not happy on Debian 7 x64:
Code:
--2013-09-24 18:53:40--  http://www.xilka.com/xilka/source/patches/Gcc-4.8.2-arm                                                                                                                                                              -thumb2-CASE_VECTOR_SHORTEN_MODE.patch
Resolving www.xilka.com (www.xilka.com)... 108.62.185.77
Connecting to www.xilka.com (www.xilka.com)|108.62.185.77|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-09-24 18:53:41 ERROR 404: Not Found.

There are a serious number of patches in that directory!!! Smiley
6  Linux Stuff / Kernel / Re: 3.9.0+ Device-tree kernels on: September 15, 2013, 03:01:54 AM
Hi Tony,

I've researched the 'slowdowns' and found that in my case the SD card had been optimized by the manufacturer for cameras etc with large block sizes for read/writes. This will make a login to linux take up to 10s - 10-20 IOPS! Absolutely pathetic. 

If you can get the Sandisk Mobile Micro Ultra 16-64gb cards they are made for small read/writes in phones and I've benched them doing 4kb read/writes at 300 IOPS / 16gb card and 400IOPS / 64gb card.

They also support trim (sadly only exists as an IOCTL in the raspberry pi kernel, not the sheeva) and supposedly have some wear leveling according to the data sheets.

Suffice to say I won't use anything else any more.

The numbers speak for themselves:
Code:
transcend micro class 6

-----------------------------------------------------------------------
CrystalDiskMark 3.0.2 x64 (C) 2007-2013 hiyohiyo
                           Crystal Dew World : http://crystalmark.info/
-----------------------------------------------------------------------
* MB/s = 1,000,000 byte/s [SATA/300 = 300,000,000 byte/s]

           Sequential Read :    14.871 MB/s
          Sequential Write :    11.002 MB/s
         Random Read 512KB :    14.822 MB/s
        Random Write 512KB :     1.744 MB/s
    Random Read 4KB (QD=1) :     3.993 MB/s [   974.8 IOPS]
   Random Write 4KB (QD=1) :     0.017 MB/s [     4.1 IOPS]
   Random Read 4KB (QD=32) :     4.467 MB/s [  1090.6 IOPS]
  Random Write 4KB (QD=32) :     0.021 MB/s [     5.2 IOPS]

  Test : 100 MB [F: 0.0% (0.0/7770.9 MB)] (x1)
  Date : 2013/05/18 8:54:14
   
 

sandisk 64gb microsd class 6
-----------------------------------------------------------------------
CrystalDiskMark 3.0.2 x64 (C) 2007-2013 hiyohiyo
                           Crystal Dew World : http://crystalmark.info/
-----------------------------------------------------------------------
* MB/s = 1,000,000 byte/s [SATA/300 = 300,000,000 byte/s]

           Sequential Read :    21.177 MB/s
          Sequential Write :     6.972 MB/s
         Random Read 512KB :    21.017 MB/s
        Random Write 512KB :     1.003 MB/s
    Random Read 4KB (QD=1) :     3.572 MB/s [   872.2 IOPS]
   Random Write 4KB (QD=1) :     1.378 MB/s [   336.4 IOPS]
   Random Read 4KB (QD=32) :     3.515 MB/s [   858.1 IOPS]
  Random Write 4KB (QD=32) :     1.454 MB/s [   355.0 IOPS]

  Test : 100 MB [D: 82.7% (49.2/59.5 GB)] (x1)
  Date : 2013/05/18 8:59:37
   
 

kingston 32gb class 4
-----------------------------------------------------------------------
CrystalDiskMark 3.0.2 x64 (C) 2007-2013 hiyohiyo
                           Crystal Dew World : http://crystalmark.info/
-----------------------------------------------------------------------
* MB/s = 1,000,000 byte/s [SATA/300 = 300,000,000 byte/s]

           Sequential Read :    17.142 MB/s
          Sequential Write :     4.246 MB/s
         Random Read 512KB :    17.117 MB/s
        Random Write 512KB :     0.665 MB/s
    Random Read 4KB (QD=1) :     2.113 MB/s [   516.0 IOPS]
   Random Write 4KB (QD=1) :     0.006 MB/s [     1.5 IOPS]
   Random Read 4KB (QD=32) :     2.216 MB/s [   541.1 IOPS]
  Random Write 4KB (QD=32) :     0.006 MB/s [     1.4 IOPS]

  Test : 100 MB [D: 0.0% (0.0/29.9 GB)] (x1)
  Date : 2013/05/18 9:23:40
   
 

sandisk 1gb
-----------------------------------------------------------------------
CrystalDiskMark 3.0.2 x64 (C) 2007-2013 hiyohiyo
                           Crystal Dew World : http://crystalmark.info/
-----------------------------------------------------------------------
* MB/s = 1,000,000 byte/s [SATA/300 = 300,000,000 byte/s]

           Sequential Read :    11.678 MB/s
          Sequential Write :     4.160 MB/s
         Random Read 512KB :    11.576 MB/s
        Random Write 512KB :     1.977 MB/s
    Random Read 4KB (QD=1) :     4.960 MB/s [  1210.9 IOPS]
   Random Write 4KB (QD=1) :     0.027 MB/s [     6.6 IOPS]
   Random Read 4KB (QD=32) :     5.199 MB/s [  1269.3 IOPS]
  Random Write 4KB (QD=32) :     0.027 MB/s [     6.5 IOPS]

  Test : 50 MB [D: 93.0% (897.1/964.7 MB)] (x1)
  Date : 2013/05/18 9:32:44
   


  patriot lx 16gb
-----------------------------------------------------------------------
CrystalDiskMark 3.0.2 x64 (C) 2007-2013 hiyohiyo
                           Crystal Dew World : http://crystalmark.info/
-----------------------------------------------------------------------
* MB/s = 1,000,000 byte/s [SATA/300 = 300,000,000 byte/s]

           Sequential Read :    20.039 MB/s
          Sequential Write :    15.863 MB/s
         Random Read 512KB :    17.797 MB/s
        Random Write 512KB :     1.148 MB/s
    Random Read 4KB (QD=1) :     2.179 MB/s [   532.0 IOPS]
   Random Write 4KB (QD=1) :     0.157 MB/s [    38.4 IOPS]
   Random Read 4KB (QD=32) :     2.604 MB/s [   635.6 IOPS]
  Random Write 4KB (QD=32) :     0.157 MB/s [    38.3 IOPS]

  Test : 50 MB [F: 0.0% (0.0/14.9 GB)] (x1)
  Date : 2013/05/18 10:18:33
   



samsung 16gb
-----------------------------------------------------------------------
CrystalDiskMark 3.0.2 x64 (C) 2007-2013 hiyohiyo
                           Crystal Dew World : http://crystalmark.info/
-----------------------------------------------------------------------
* MB/s = 1,000,000 byte/s [SATA/300 = 300,000,000 byte/s]

           Sequential Read :    18.567 MB/s
          Sequential Write :    17.378 MB/s
         Random Read 512KB :    17.577 MB/s
        Random Write 512KB :     1.365 MB/s
    Random Read 4KB (QD=1) :     2.760 MB/s [   673.8 IOPS]
   Random Write 4KB (QD=1) :     0.014 MB/s [     3.3 IOPS]
   Random Read 4KB (QD=32) :     2.875 MB/s [   701.9 IOPS]
  Random Write 4KB (QD=32) :     0.018 MB/s [     4.3 IOPS]

  Test : 100 MB [F: 0.0% (0.0/15.1 GB)] (x1)
  Date : 2013/06/26 18:31:28
   
 

sandisk 64gb micro ultra mobile class 10
-----------------------------------------------------------------------
CrystalDiskMark 3.0.2 x64 (C) 2007-2013 hiyohiyo
                           Crystal Dew World : http://crystalmark.info/
-----------------------------------------------------------------------
* MB/s = 1,000,000 byte/s [SATA/300 = 300,000,000 byte/s]

           Sequential Read :    21.347 MB/s
          Sequential Write :     8.861 MB/s
         Random Read 512KB :    21.531 MB/s
        Random Write 512KB :    10.338 MB/s
    Random Read 4KB (QD=1) :     5.318 MB/s [  1298.4 IOPS]
   Random Write 4KB (QD=1) :     1.713 MB/s [   418.3 IOPS]
   Random Read 4KB (QD=32) :     4.727 MB/s [  1154.1 IOPS]
  Random Write 4KB (QD=32) :     1.682 MB/s [   410.7 IOPS]

  Test : 100 MB [D: 0.0% (0.0/59.4 GB)] (x1)
  Date : 2013/06/26 18:40:21

Glad I could help with uboot.

Cheers,
marcus
7  Linux Stuff / Kernel / Re: 3.9.0+ Device-tree kernels on: September 14, 2013, 08:21:33 PM
OK, so I'm settling on the fact that devicetree is evil and additionally no one cares about fixing it.  Who am I to go against the flow? Smiley

I upgraded from debian wheezy (originally installed via network installer to sd card) to debian jessie, which at the time of writing had a non-device-tree kernel 3.10.2 with the revolutionary benefit of console output.

Here's my environment excluding ethaddr:
Code:
baudrate=115200
bootcmd=run x_bootcmd; run z_bootstrap; reset;
bootdelay=3
console=console=ttyS0,115200n8
ethact=egiga0
filesize=1c7038
initrdaddr=0x01100000
initrdfile=/uInitrd
kerneladdr=0x00800000
kernelfile=/uImage
loadcmd=ext2load mmc 0:1
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:768k(uboot),256k(uboot_env),11m@1m(kernel),-@12m(rootfs)
scriptaddr=0x00800000
scriptfile=/boot/boot.scr
stderr=serial
stdin=serial
stdout=serial
x_bootargs=console=ttyS0,115200n8 earlyprintk mtdparts=orion_nand:768k(uboot),256k(uboot_env),11m@1m(kernel),-@12m(rootfs)
x_bootargs_root=root=/dev/mmcblk0p2 rootdelay=5
x_bootcmd=${x_bootcmd_kernel}; setenv bootargs ${x_bootargs} ${x_bootargs_root}; run z_bootinit;
x_bootcmd_kernel=echo ====== BootStrap start ======
x_bootcmd_mtd=nand read.e ${kerneladdr} kernel 0x00b00000;
x_bootstrap_cmd=for device in "mmc"; do for fs in "ext2"; do setenv loadcmd "${fs}load ${device} 0:1"; if ${loadcmd} ${kerneladdr} ${kernelfile}; then; if ${loadcmd} ${initrdaddr} ${initrdfile}; then; run z_bootcmd; fi; fi; done; done;
z_bootcmd=if imi ${kerneladdr}; then; bootm ${kerneladdr} ${initrdaddr}; else; echo --- next bootcmd device try ---; fi;
z_bootfail=echo ====== BootStrap end ======
z_bootinit=mmc rescan; usb reset; ide reset;
z_bootstrap=run z_bootinit; run x_bootstrap_scr; run x_bootstrap_cmd; run x_bootcmd_mtd; run z_bootfail;

If my notes are to be believed, this should be the set of commands to change the stock nvram to the above:
Code:
setenv initrdaddr 0x01100000
setenv initrdfile /uInitrd
setenv kerneladdr 0x00800000
setenv kernelfile /uImage
setenv x_bootargs 'console=ttyS0,115200n8 earlyprintk mtdparts=orion_nand:768k(uboot),256k(uboot_env),11m@1m(kernel),-@12m(rootfs)'
setenv x_bootargs_root 'root=/dev/mmcblk0p2 rootdelay=5'
setenv x_bootstrap_cmd 'for device in "mmc"; do for fs in "ext2"; do setenv loadcmd "${fs}load ${device} 0:1"; if ${loadcmd} ${kerneladdr} ${kernelfile}; then; if ${loadcmd} ${initrdaddr} ${initrdfile}; then; run z_bootcmd; fi; fi; done; done;''
setenv z_bootcmd 'if imi ${kerneladdr}; then; bootm ${kerneladdr} ${initrdaddr}; else; echo --- next bootcmd device try ---; fi;''
saveenv

Dmesg from boot:
Code:
1863736 bytes read in 1135 ms (1.6 MiB/s)
8186974 bytes read in 3301 ms (2.4 MiB/s)

## Checking Image at 00800000 ...
   Legacy image found
   Image Name:   kernel 3.10-2-kirkwood
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1863672 Bytes = 1.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   kernel 3.10-2-kirkwood
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1863672 Bytes = 1.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   ramdisk 3.10-2-kirkwood
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    8186910 Bytes = 7.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.10-2-kirkwood (debian-kernel@lists.debian.org) (gcc version 4.7.3 (Debian 4.7.3-6) ) #1 Debian 3.10.7-1 (2013-08-17)
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Marvell SheevaPlug Reference Board
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200n8 earlyprintk mtdparts=orion_nand:768k(uboot),256k(uboot_env),11m@1m(kernel),-@12m(rootfs) root=/dev/mmcblk0p2 rootdelay=5
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 512MB = 512MB total
[    0.000000] Memory: 506060k/506060k available, 18228k 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]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc04ab190   (4749 kB)
[    0.000000]       .init : 0xc04ac000 - 0xc04da004   ( 185 kB)
[    0.000000]       .data : 0xc04dc000 - 0xc05284a0   ( 306 kB)
[    0.000000]        .bss : 0xc05284a0 - 0xc058ea1c   ( 410 kB)
[    0.000000] NR_IRQS:114
[    0.000000] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474ms
[    0.000000] Console: colour dummy device 80x30
[    0.621696] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.709875] pid_max: default: 32768 minimum: 301
[    0.714686] Security Framework initialized
[    0.718922] Yama: disabled by default; enable with sysctl kernel.yama.*
[    0.725713] Mount-cache hash table entries: 512
[    0.730913] Initializing cgroup subsys memory
[    0.735423] Initializing cgroup subsys devices
[    0.740007] Initializing cgroup subsys freezer
[    0.744564] Initializing cgroup subsys net_cls
[    0.749133] Initializing cgroup subsys blkio
[    0.753508] Initializing cgroup subsys perf_event
[    0.758417] CPU: Testing write buffer coherency: ok
[    0.763741] Setting up static identity map for 0xc0355090 - 0xc03550cc
[    0.771841] devtmpfs: initialized
[    0.777304] pinctrl core: initialized pinctrl subsystem
[    0.782950] regulator-dummy: no parameters
[    0.787481] NET: Registered protocol family 16
[    0.792394] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.800132] Kirkwood: MV88F6281-A0, TCLK=200000000.
[    0.805134] Feroceon L2: Enabling L2
[    0.808866] Feroceon L2: Cache support initialised.
[    0.816589] bio: create slab <bio-0> at 0
[    0.821179] vgaarb: loaded
[    0.824567] Switching to clocksource orion_clocksource
[    0.844026] NET: Registered protocol family 2
[    0.849050] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.856331] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.862943] TCP: Hash tables configured (established 4096 bind 4096)
[    0.869497] TCP: reno registered
[    0.872844] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.878801] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.885367] NET: Registered protocol family 1
[    0.890034] Unpacking initramfs...
[    1.614863] Freeing initrd memory: 7988K (c1101000 - c18ce000)
[    1.620887] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.628150] audit: initializing netlink socket (disabled)
[    1.633715] type=2000 audit(1.010:1): initialized
[    1.639402] VFS: Disk quotas dquot_6.5.2
[    1.643506] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.650288] jffs2: version 2.2. (NAND) (SUMMARY)   2001-2006 Red Hat, Inc.
[    1.657647] msgmni has been set to 1004
[    1.663353] alg: No test for stdrng (krng)
[    1.667622] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    1.675277] io scheduler noop registered
[    1.679301] io scheduler deadline registered
[    1.683716] io scheduler cfq registered (default)
[    1.688643] mv_xor mv_xor.0: Marvell shared XOR driver
[    1.729904] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[    1.769891] mv_xor mv_xor.0: Marvell XOR: ( xor fill cpy )
[    1.775608] mv_xor mv_xor.1: Marvell shared XOR driver
[    1.819891] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[    1.859891] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[    1.865751] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    1.892834] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[    1.899750] console [ttyS0] enabled, bootconsole disabled
[    1.899750] console [ttyS0] enabled, bootconsole disabled
[    1.911659] NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit), 512MiB, page size: 2048, OOB size: 64
[    1.923563] Scanning device for bad blocks
[    2.199793] Bad eraseblock 3655 at 0x00001c8e0000
[    2.237313] 4 cmdlinepart partitions found on MTD device orion_nand
[    2.243619] Creating 4 MTD partitions on "orion_nand":
[    2.248783] 0x000000000000-0x0000000c0000 : "uboot"
[    2.254491] 0x0000000c0000-0x000000100000 : "uboot_env"
[    2.260538] 0x000000100000-0x000000c00000 : "kernel"
[    2.266298] 0x000000c00000-0x000020000000 : "rootfs"
[    2.272960] mousedev: PS/2 mouse device common for all mice
[    2.278870] rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
[    2.284823] i2c /dev entries driver
[    2.288484] cpuidle: using governor ladder
[    2.292613] cpuidle: using governor menu
[    2.296738] leds-gpio leds-gpio: pins are not configured from the driver
[    2.304012] TCP: cubic registered
[    2.307382] NET: Registered protocol family 10
[    2.312460] mip6: Mobile IPv6
[    2.315444] NET: Registered protocol family 17
[    2.320435] registered taskstats version 1
[    2.325385] rtc-mv rtc-mv: setting system clock to 2013-09-15 03:18:36 UTC (1379215116)
[    2.334196] Freeing unused kernel memory: 184K (c04ac000 - c04da000)
Loading, please wait...
[    2.410432] udevd[47]: starting version 175
[    2.477983] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    2.573579] libphy: orion_mdio_bus: probed
[    2.577789] mvsdio mvsdio: no pins associated
[    2.619912] mvsdio mvsdio: lacking card detect (fall back to polling)
[    2.627833] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address yesitwashere
[    2.677557] mmc0: host does not support reading read-only switch. assuming write-enable.
[    2.705241] mmc0: new high speed SDHC card at address e624
[    2.777872] mmcblk0: mmc0:e624 SU16G 14.8 GiB
[    2.785468]  mmcblk0: p1 p2 p3 < p5 >
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.
[    8.150449] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[    9.267427] udevd[233]: starting version 175
. ok
[....] Synthesizing the initial hotplug events...[    9.606553] usbcore: registered new interface driver usbfs
[    9.684436] usbcore: registered new interface driver hub
[    9.794565] usbcore: registered new device driver usb
[ ok [    9.859317] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
done.
[    9.930267] ehci-orion: EHCI orion driver
[    9.961406] orion_wdt: Initial timeout 21 sec
[    9.987955] orion-ehci orion-ehci.0: EHCI Host Controller
[....] Waiting for /dev to be fully populated...[   10.024149] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[   10.063389] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[   10.087980] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[   10.094041] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   10.100872] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   10.108128] usb usb1: Product: EHCI Host Controller
[   10.113041] usb usb1: Manufacturer: Linux 3.10-2-kirkwood ehci_hcd
[   10.119246] usb usb1: SerialNumber: orion-ehci.0
[   10.124794] hub 1-0:1.0: USB hub found
[   10.128572] hub 1-0:1.0: 1 port detected
done.
[....] Activating swap...[   10.730199] Adding 706556k swap on /dev/mmcblk0p5.  Priority:-1 extents:1 across:706556k SS
done.
[   10.831368] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.20.1
plug-rootfs: clean, 37378/913920 files, 317077/3650048 blocks
done.
[   11.124271] EXT4-fs (mmcblk0p2): re-mounted. Opts: errors=remount-ro
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.20.1
plug-boot: clean, 31/124496 files, 63828/248832 blocks
done.
[ ok ] Cleaning up temporary files... /tmp.
[info] Loading kernel module loop.
[   12.473476] loop: module loaded
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[ ok ] Configuring network interfaces...done.
[....] Starting rpcbind daemon..[   14.348973] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down
.[   14.356070] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
. ok
[....] Starting NFS common utilities: statd[   14.761025] RPC: Registered named UNIX socket transport module.
[   14.766977] RPC: Registered udp transport module.
[   14.771727] RPC: Registered tcp transport module.
[   14.776446] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   14.801549] FS-Cache: Loaded
[   14.807949] Key type dns_resolver registered
[   14.842305] FS-Cache: Netfs 'nfs' registered for caching
[   14.897680] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ ok pd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[ ok ] Starting enhanced syslogd: rsyslogd.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Starting deferred execution scheduler: atd.
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting system message bus: dbus.
[....] Starting MTA:[   17.485752] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   17.495841] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ ok 4.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.

Debian GNU/Linux jessie/sid sheeva ttyS0

sheeva login:

Enjoy!
8  Linux Stuff / Kernel / Re: 3.9.0+ Device-tree kernels on: September 07, 2013, 05:50:01 AM
I can confirm the same results as Tony.
With a stock debian kernel I get boot and console, with a cbxbiker devicetree kernel I don't get boot messages or a console.

What I've tried:
1. Recompile uboot from the repository with the FDT option enabled.  No change.  (see attachments).
2. Change multiple nvram options including console etc, with no change i.e. on the off-chance that the kernel would see the same device name that uboot has in its config... "serial".  No change.
3. Research the addition of devicetree for the kirkwood platform.  Links I've looked at that gave me quite a bit of understanding but no resolution:
Quite a bit of info on the initial integration of devicetree for this platform, including the serial devices that are broken:
http://lists.infradead.org/pipermail/linux-arm-kernel/2012-March/089320.html
http://www.mail-archive.com/devicetree-discuss@lists.ozlabs.org/msg12134.html
http://www.mail-archive.com/devicetree-discuss@lists.ozlabs.org/msg12063.html
http://lists.infradead.org/pipermail/linux-arm-kernel/2012-March/089248.html

So, at this point I'm convinced it's a kernel bug (up to and including 3.11)  as the serial devices are not registering and thus can't be used by the boot or console processes.  It could be a devicetree issue with the defintions for the hardware and configuration, or it could be an issue with the drivers being configured by the devicetree.  I can't say that debugging this is my speciality Sad

The .dts / .dtsi files for the base kirkwood platform and the sheevaplug 'customisations' conform with the mailing list posts, so if it is a bug, it's in the kernel assuming cbxbiker has not changed the devicetree details.

Sad

Updated uboot attached, flash like so:
copy to fat16 usb stick (unzip)
in existing console:
fatload usb 0 0x800000 u-boot.kwb
nand erase 0x0 0x80000
nand write 0x0800000 0x0 0x80000

Build instructions and patches for the built binary from https://doukki.net/doku.php?id=wiki:tutoriels:uboot.howto


Pages: [1]