Does anybody have a working subj?
I have a board, and 3.4 kernel works ok. I'm trying to run 3.10 from the expiremental branch, but it always hangs on startup.
The uEnv.txt is like follows:
Quote#dtb_file=script.bin.3.4
#img_file=uImage.3.4
dtb_file=sun5i-a13-olinuxino.dtb
img_file=uImage.3.10
mmc_load_image=ext2load mmc 0 0x48000000 ${img_file}
mmc_load_dtb=ext2load mmc 0 0x41000000 ${dtb_file}
mmcargs=setenv bootargs console=ttyS0 root=/dev/mmcblk0p1 rw rootwait panic=10
fdtargs=setenv fdt_high 0xffffffff;setenv initrd_high 0xffffffff
# noinitrd ssp1=mmc ext3 fixrtc
xyz_mmcboot=run mmc_load_image; run mmc_load_dtb; echo Booting from mmc ...
uenvcmd=run xyz_mmcboot; run mmcargs; run fdtargs; printenv; bootm 0x48000000 - 0x41000000
Maybe there's something blatantly wrong here?
You can start the kernel manually via u-boot commands. Put kernel image(uImage) and dtb into uSD boot partition then type:
fatload mmc 0 0x46000000 uImage
fatload mmc 0 0x49000000 something.dtb (sun4i-a10-cubieboard.dtb or sun5i-a13-olinuxino.dtb)
env set fdt_high ffffffff
bootm 0x46000000 - 0x49000000
Warning: the rootfs must be embedded into uImage or use rootfs via NFS
kernel with rootfs: https://dl.dropboxusercontent.com/u/22273442/A13/boot/uImage-main (https://dl.dropboxusercontent.com/u/22273442/A13/boot/uImage-main)
rootfs: https://dl.dropboxusercontent.com/u/22273442/A13/initramfs/rootfs-2.cpio (https://dl.dropboxusercontent.com/u/22273442/A13/initramfs/rootfs-2.cpio)
Enter u-boot commands pressing any button during u-boot start ;)
Thank you very much, vinifr!
I've asked in IRC yesterday, indeed, I was trying to boot a kernel without MMC support and without rootfs. Trying hansg's branch now. With early_printk I see it hangs on "Waiting for root device /dev/mmcblk0p1...". I'll try to compile a kernel myself now and see where I'm wrong:) At least I moved forward a little bit.
Actually
But mmc support still doesn't work. https://groups.google.com/forum/?fromgroups=#!topic/linux-sunxi/prLRvZAHFvc (https://groups.google.com/forum/?fromgroups=#!topic/linux-sunxi/prLRvZAHFvc) In which case use rootfs embedded into uImage like above
Ah, I see. It stalls on obtaining root.
QuoteBooting Linux on physical CPU 0x0
Linux version 3.13.0-rc2 (root@localhost) (gcc version 4.7.3 (Gentoo 4.7.3-r1 p1.3, pie-0.5.5) ) #4 SMP Thu Dec 12 15:48:14 MSK 2013
CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: Olimex A13-Olinuxino
Memory policy: Data cache writeback
On node 0 totalpages: 131072
free_area_init_node: node 0, pgdat c0366800, node_mem_map c039c000
Normal zone: 1024 pages used for memmap
Normal zone: 0 pages reserved
Normal zone: 131072 pages, LIFO batch:31
CPU: All CPU(s) started in SVC mode.
PERCPU: Embedded 5 pages/cpu @c07a3000 s6528 r0 d13952 u32768
pcpu-alloc: s6528 r0 d13952 u32768 alloc=8*4096
pcpu-alloc: - 0
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
Kernel command line: console=ttyS0,115200 loglevel=9 root=/dev/mmcblk0p1 rootwait earlyprintk rw panic=10
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 516040K/524288K available (2622K kernel code, 148K rwdata, 520K rodata, 158K init, 207K bss, 8248K reserved, 0K highmem)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
vmalloc : 0xe0800000 - 0xff000000 ( 488 MB)
lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
.text : 0xc0008000 - 0xc0319c88 (3144 kB)
.init : 0xc031a000 - 0xc0341980 ( 159 kB)
.data : 0xc0342000 - 0xc0367280 ( 149 kB)
.bss : 0xc0367288 - 0xc039b064 ( 208 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
NR_IRQS:16 nr_irqs:16 16
sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956969942ns
Console: colour dummy device 80x30
Calibrating delay loop... 669.28 BogoMIPS (lpj=3346432)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket -1, mpidr 0
Setting up static identity map for 0x4027e2e0 - 0x4027e338
Brought up 1 CPUs
SMP: Total of 1 processors activated.
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
pinctrl core: initialized pinctrl subsystem
regulator-dummy: no parameters
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
bio: create slab <bio-0> at 0
Switched to clocksource timer
NET: Registered protocol family 2
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP: reno registered
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
sunxi-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
1c28400.serial: ttyS0 at MMIO 0x1c28400 (irq = 18, base_baud = 1500000) is a U6_16550A
console [ttyS0] enabled
mousedev: PS/2 mouse device common for all mice
i2c /dev entries driver
sunxi-wdt 1c20c90.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
TCP: cubic registered
NET: Registered protocol family 17
lib80211: common routines for IEEE802.11 drivers
lib80211_crypt: registered algorithm 'NULL'
lib80211_crypt: registered algorithm 'WEP'
lib80211_crypt: registered algorithm 'CCMP'
lib80211_crypt: registered algorithm 'TKIP'
Registering SWP/SWPB emulation handler
Waiting for root device /dev/mmcblk0p1...
Well, I leave now until next week, probably will be fixed then:)