elcct post at 2015-10-17 23:43:24

And got to this point now:

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.3.0-rc5 (root@kernel) (gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-11ubuntu1) ) #20 SMP PREEMPT Sat Oct 17 09:04:41 EDT 2015
[    0.000000] CPU: ARMv7 Processor revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Xunlong Orange Pi PC
[    0.000000] bootconsole enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 524288
[    0.000000] free_area_init_node: node 0, pgdat c121b840, node_mem_map ee7f8000
[    0.000000]   Normal zone: 1520 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 194560 pages, LIFO batch:31
[    0.000000]   HighMem zone: 329728 pages, LIFO batch:31
[    0.000000] PERCPU: Embedded 13 pages/cpu @ee7b1000 s23232 r8192 d21824 u53248
[    0.000000] pcpu-alloc: s23232 r8192 d21824 u53248 alloc=13*4096
[    0.000000] pcpu-alloc: 0 1 2 3
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.Total pages: 522768
[    0.000000] Kernel command line: earlyprintk=ttyS0,115200 console=ttyS0,115200 loglevel=8 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1920x1080p60 root=/dev/mmcblk0p2
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 2060408K/2097152K available (9011K kernel code, 560K rwdata, 2616K rodata, 6372K init, 665K bss, 36744K reserved, 0K cma-reserved, 1318912K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]   vector: 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]   fixmap: 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]   vmalloc : 0xf0000000 - 0xff000000   ( 240 MB)
[    0.000000]   lowmem: 0xc0000000 - 0xef800000   ( 760 MB)
[    0.000000]   pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]   modules : 0xbf000000 - 0xbfe00000   (14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0b62ec0   (11628 kB)
[    0.000000]       .init : 0xc0b63000 - 0xc119c000   (6372 kB)
[    0.000000]       .data : 0xc119c000 - 0xc1228084   ( 561 kB)
[    0.000000]      .bss : 0xc122b000 - 0xc12d15ec   ( 666 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]         Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] Architected cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000005] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.008084] Switching to timer-based delay loop, resolution 41ns
[    0.014296] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.023858] Console: colour dummy device 80x30
[    0.028395] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.038844] pid_max: default: 32768 minimum: 301
[    0.043776] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.050487] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.058226] Initializing cgroup subsys freezer
[    0.062800] CPU: Testing write buffer coherency: ok
[    0.067790] ftrace: allocating 30562 entries in 90 pages
[    0.115635] CPU0: update cpu_capacity 1024
[    0.119821] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.125651] Setting up static identity map for 0x400082c0 - 0x40008318
[    0.275911] Brought up 1 CPUs
[    0.278969] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[    0.285222] CPU: All CPU(s) started in SVC mode.
[    0.290480] devtmpfs: initialized
[    0.300265] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.308341] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.328388] xor: measuring software checksum speed
[    0.428383]    arm4regs:1522.400 MB/sec
[    0.528429]    8regs   :   902.000 MB/sec
[    0.628493]    32regs    :1114.400 MB/sec
[    0.632755] xor: using function: arm4regs (1522.400 MB/sec)
[    0.638422] pinctrl core: initialized pinctrl subsystem
[    0.644194] NET: Registered protocol family 16
[    0.649105] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.658713] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.666822] hw-breakpoint: maximum watchpoint size is 8 bytes.

....

[    2.747623] Initialized drm 1.1.0 20060810
[    2.838163] loop: module loaded
[    2.841752] tun: Universal TUN/TAP device driver, 1.6
[    2.846882] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    2.853346] PPP generic driver version 2.4.2
[    2.857854] PPP BSD Compression module registered
[    2.862687] PPP Deflate Compression module registered
[    2.867833] PPP MPPE Compression module registered
[    2.872746] NET: Registered protocol family 24
[    2.877297] PPTP driver version 0.8.5
[    2.881283] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.887891] ehci-platform: EHCI generic platform driver
[    2.893316] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.899662] usbcore: registered new interface driver usb-storage
[    2.905833] usbcore: registered new interface driver ums-alauda
[    2.911903] usbcore: registered new interface driver ums-cypress
[    2.918029] usbcore: registered new interface driver ums-datafab
[    2.924184] usbcore: registered new interface driver ums_eneub6250
[    2.930493] usbcore: registered new interface driver ums-freecom
[    2.936612] usbcore: registered new interface driver ums-isd200
[    2.942660] usbcore: registered new interface driver ums-jumpshot
[    2.948866] usbcore: registered new interface driver ums-karma
[    2.954826] usbcore: registered new interface driver ums-onetouch
[    2.961060] usbcore: registered new interface driver ums-realtek
[    2.967178] usbcore: registered new interface driver ums-sddr09
[    2.973226] usbcore: registered new interface driver ums-sddr55
[    2.979258] usbcore: registered new interface driver ums-usbat
[    2.985282] usbcore: registered new interface driver usbserial
[    2.991249] usbcore: registered new interface driver option
[    2.996931] usbserial: USB Serial support registered for GSM modem (1-port)
[    3.004306] mousedev: PS/2 mouse device common for all mice
[    3.010237] i2c /dev entries driver
[    3.014112] device-mapper: ioctl: 4.33.0-ioctl (2015-8-18) initialised: dm-devel@redhat.com
[    3.022592] Bluetooth: HCI UART driver ver 2.3
[    3.027258] sunxi-mmc 1c0f000.mmc: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/mmc0@0, deferring probe
[    3.038518] hidraw: raw HID events driver (C) Jiri Kosina
[    3.046013] usbcore: registered new interface driver usbhid
[    3.051715] usbhid: USB HID core driver
[    3.055702] usbcore: registered new interface driver r8712u
[    3.061449] usbcore: registered new interface driver r8188eu
[    3.067230] Mali: Mali device driver loaded
[    3.072509] oprofile: no performance counters
[    3.077038] oprofile: using timer interrupt.
[    3.081567] u32 classifier
[    3.084356]   Actions configured
[    3.087844] Netfilter messages via NETLINK v0.30.
[    3.092718] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[    3.099255] ctnetlink v0.93: registering with nfnetlink.
[    3.104976] xt_time: kernel timezone is -0000
[    3.109565] ipip: IPv4 over IPv4 tunneling driver
[    3.114926] gre: GRE over IPv4 demultiplexor driver
[    3.119887] ip_gre: GRE over IPv4 tunneling driver
[    3.126091] ip_tables: (C) 2000-2006 Netfilter Core Team
[    3.131687] arp_tables: (C) 2002 David S. Miller
[    3.136478] Initializing XFRM netlink socket
[    3.141016] NET: Registered protocol family 10
[    3.156725] mip6: Mobile IPv6
[    3.159805] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    3.165707] sit: IPv6 over IPv4 tunneling driver
[    3.171683] NET: Registered protocol family 17
[    3.176230] NET: Registered protocol family 15
[    3.180918] Bluetooth: RFCOMM TTY layer initialized
[    3.185882] Bluetooth: RFCOMM socket layer initialized
[    3.191208] Bluetooth: RFCOMM ver 1.11
[    3.195051] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    3.200479] Bluetooth: BNEP filters: protocol multicast
[    3.205788] Bluetooth: BNEP socket layer initialized
[    3.210866] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    3.216868] Bluetooth: HIDP socket layer initialized
[    3.222042] l2tp_core: L2TP core driver, V2.0
[    3.226493] l2tp_ppp: PPPoL2TP kernel driver, V2.0
[    3.231404] l2tp_ip: L2TP IP encapsulation support (L2TPv3)
[    3.237073] l2tp_netlink: L2TP netlink interface
[    3.241843] l2tp_eth: L2TP ethernet pseudowire support (L2TPv3)
[    3.247844] l2tp_ip6: L2TP IP encapsulation support for IPv6 (L2TPv3)
[    3.254437] Key type dns_resolver registered
[    3.259187] ThumbEE CPU extension supported.
[    3.263601] Registering SWP/SWPB emulation handler
[    3.269054] bootconsole disabled

darqoq post at 2015-10-18 00:05:53

@elcct: go on, don't give up, I wish you luck.
Please share you work and progress.

igorpec post at 2015-10-18 01:50:21

Edited by igorpec at 2015-10-17 18:55

Brought up 1 CPUs
SMP: Total of 1 processors activated (48.00 BogoMIPS).
Low speed single core mode with serial console. Not much :(

This stage hasn't been change for a while.

Hardware schematics:
http://forum.armbian.com/index.p ... =attach&attach_id=2

elcct post at 2015-10-20 00:42:12

One core is probably because SVC mode. I have hacked u-boot to switch cpu into HYP mode before launching the kernel, but for some reason u-boot no longer booting the device.

I tweaked u-boot from this repo https://github.com/loboris/OrangePI-Kernel

Then I wrote resulting .bin to the sd card with

dd if=u-boot-sun8i7w1.bin of=/dev/sdX bs=1024 seek=32

But that didn't work. Probably I also need spl, but for some reason it doesn't build.

Has anyone tried any new version of u-boot? Or why this particular version is being used?

Thanks :)

igorpec post at 2015-10-20 02:30:44

This u-boot came from here:
https://github.com/allwinner-zh/bootloader

script.bin support is there but haven't try if it works. Loboris does not use it.

There is a bit better patch out: http://moinejf.free.fr/opi2/u-boot.patch
script.bin and uEnv.txt

I don't know for any other at the moment - am also playing with it ... not much luck either. I need to add a boot script support to match my standard boot procedure.

moinejf post at 2015-10-20 02:43:37

Jens has done job on the mainline U-boot, but nothing since August. Anyway, the problem is not the boot: the mainline kernel does not support fully the Allwinner SoCs.

I started from Jens' patch series (May 2015) and modified it for the kernel 4.3.
Below is today's result. My machine is an OPI2 (the machine name is the one of the DT) booting from the lichee u-boot. There are only 2 drivers: UART and MMC. With the kernel 4.2, I could log in. Now, systemd crashes. I'll look at this tomorrow...
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.3.0-rc2-00001-g21d32e6-dirty (jef@OPI2) (gcc version 5.2.1 20151010 (Debian 5.2.1-22) ) #18 SMP Mon Oct 19 16:05:57 CEST 2015
[    0.000000] CPU: ARMv7 Processor revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Xunlong Orange Pi Plus
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 262144
[    0.000000] free_area_init_node: node 0, pgdat c05d7980, node_mem_map eeffa000
[    0.000000]   Normal zone: 1520 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 194560 pages, LIFO batch:31
[    0.000000]   HighMem zone: 67584 pages, LIFO batch:15
[    0.000000] PERCPU: Embedded 12 pages/cpu @eefbc000 s17536 r8192 d23424 u49152
[    0.000000] pcpu-alloc: s17536 r8192 d23424 u49152 alloc=12*4096
[    0.000000] pcpu-alloc: 0 1 2 3
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.Total pages: 260624
[    0.000000] Kernel command line: earlyprintk=ttyS0,115200 loglevel=8 root=/dev/mmcblk0p2 rootwait rootfstype=ext4 console=tty1 console=ttyS0,115200
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1033096K/1048576K available (4433K kernel code, 137K rwdata, 1180K rodata, 200K init, 249K bss, 15480K reserved, 0K cma-reserved, 270336K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]   vector: 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]   fixmap: 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]   vmalloc : 0xf0000000 - 0xff000000   ( 240 MB)
[    0.000000]   lowmem: 0xc0000000 - 0xef800000   ( 760 MB)
[    0.000000]   pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]   modules : 0xbf000000 - 0xbfe00000   (14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0583840   (5615 kB)
[    0.000000]       .init : 0xc0584000 - 0xc05b6000   ( 200 kB)
[    0.000000]       .data : 0xc05b6000 - 0xc05d8620   ( 138 kB)
[    0.000000]      .bss : 0xc05d8620 - 0xc0616bf8   ( 250 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console enabled
[    0.060000] Calibrating delay loop... 2387.14 BogoMIPS (lpj=11935744)
[    0.060000] pid_max: default: 32768 minimum: 301
[    0.060000] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.060000] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.060000] CPU: Testing write buffer coherency: ok
[    0.060000] /cpus/cpu@0 missing clock-frequency property
[    0.060000] /cpus/cpu@1 missing clock-frequency property
[    0.060000] /cpus/cpu@2 missing clock-frequency property
[    0.060000] /cpus/cpu@3 missing clock-frequency property
[    0.060000] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.060000] Setting up static identity map for 0x40008200 - 0x40008234
[    0.060000] Brought up 1 CPUs
[    0.060000] SMP: Total of 1 processors activated (2387.14 BogoMIPS).
[    0.060000] CPU: All CPU(s) started in SVC mode.
[    0.060000] devtmpfs: initialized
[    0.060000] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.060000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.060000] xor: measuring software checksum speed
[    0.160000]    arm4regs:1528.800 MB/sec
[    0.260000]    8regs   :1055.600 MB/sec
[    0.360000]    32regs    :1053.600 MB/sec
[    0.360000] xor: using function: arm4regs (1528.800 MB/sec)
[    0.360000] pinctrl core: initialized pinctrl subsystem
[    0.360000] NET: Registered protocol family 16
[    0.360000] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.360000] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.360000] hw-breakpoint: maximum watchpoint size is 8 bytes.


fritz post at 2015-10-20 02:50:52

I'm a little confused, this thread Orange PI with 4.2.2 and 3.4.109 is about orange PI = A20 Soc and not orange pi2/plus/pc = H3.
Is this correct or I'm wrong?
:)

igorpec post at 2015-10-20 03:39:36

You are right and wrong ;)

Armbian / this thread / image / project doesn't support H3 ... we are just researching possibilities. Maybe it's time to (try) to make some progress.

igorpec post at 2015-10-21 02:40:16

elcct replied at 2015-10-19 17:42
One core is probably because SVC mode. I have hacked u-boot to switch cpu into HYP mode before launc ...

You need to patch uboot - add a script.bin to it, otherwise no go. It would be nice to resolve what this tool actually do.http://linux-sunxi.org/H3_Manual_build_howto


# Patch U-Bootpctools/linux/mod_update/update_uboot out/u-boot.fex out/sys_config.bin

I build uboot from original source + compiler patch (that i can compile with standard compiler) and it's working as is ... but to fix all what's needed / expected looks like a lot of work? Already spent 1000 USD in R&D :lol

elcct post at 2015-10-21 07:12:35

Now it shows me this

HELLO! BOOT0 is starting!
boot0 version : 4.0.0
fel_flag = 0x00000000
rtc value = 0x00000000
rtc value = 0x00000000
rtc value = 0x00000000
rtc value = 0x00000000
rtc value = 0x00000000
rtc value = 0x00000000
rtc value = 0x00000000
rtc value = 0x00000000
DRAM DRIVE INFO: V0.8
DRAM Type = 3 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
DRAM CLK = 672 MHz
DRAM zq value: 003b3bfb
READ DQS LCDL = 001c1c1c
DRAM SIZE =1024 M
odt delay
dram size =1024
card boot number = 0
card no is 0
sdcard 0 line count 0
: mmc driver ver 2014-12-10 21:20:39
: ***Try SD card 0***
: mmc 0 cmd 8 err 00000002
: mmc 0 cmd 8 err 00000002
: mmc 0 send if cond failed
: mmc 0 cmd 55 err 00000002
: mmc 0 cmd 55 err 00000002
: mmc 0 send app cmd failed
: ***Try MMC card 0***
: mmc 0 cmd 1 err 00000002
: mmc 0 cmd 1 err 00000002
: mmc 0 send op cond failed
: mmc 0 Card did not respond to voltage select!
: ***SD/MMC 0 init error!!!***
: mmc 0 register failed
Fail in Init sdmmc.
Ready to disable icache.

And stops. Looks like I have an error somewhere. Will leave it for the weekend...
page: 1 2 3 [4]
View full version: Orange PI with 4.2.2 and 3.4.109