hypriot / image-builder-odroid-c2

Build SD card image for ODROID C2
http://blog.hypriot.com/post/how-to-get-docker-working-on-your-favourite-arm-board-with-hypriotos/
MIT License
36 stars 16 forks source link

Configure U-Boot to mount and load kernel from an EXT4 partition #5

Closed DieterReuter closed 8 years ago

DieterReuter commented 8 years ago

In https://github.com/hypriot/image-builder-odroid-c2/blob/master/builder/boot.ini#L73-L83 we should configure to mount the SD card as EXT4 partition and loading the kernel files from this EXT4 partition.

We could configure it the same way like the C1. Details can be found here https://github.com/hypriot/image-builder-odroid-c1/blob/master/builder/boot.ini#L64-L67

umiddelb commented 8 years ago

I've an idea: Only put the boot.ini on the vfat partition, but keep the rest (kernel image, ...) on the ext4 partition. This will keep the rootfs as an entire 'thing' and solves the issue, that Windows/ OS X Users cannot access their SD cards.
The downside: This breaks compatibility to HARDKERNELs upgrade procedure (the boot.init on the vfat partition won't be updated automatically)

DieterReuter commented 8 years ago

We have to consider a better partition layout later on. For now I'd like to get it running with a single EXT4 partition. Do the C2 U-Boot currently support ext4load as well? I'd guess so, but I'm not sure at all.

umiddelb commented 8 years ago

The stock C2 U-Boot supports ext4load only (no ext2load).

DieterReuter commented 8 years ago

Perfect!

umiddelb commented 8 years ago

U-Boot is loaded but stops then

odroidc2#reset                                                                  
resetting ...                                                                   
GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:800;NAND:81;SD:0;READ:0;C;
TE: 129660                                                                      
no sdio debug board detected                                                    

BL2 Built : 11:44:26, Nov 25 2015.                                              
gxb gfb13a3b-c2 - jcao@wonton                                                   

Board ID = 8                                                                    
set vcck to 1100 mv                                                             
set vddee to 1050 mv                                                            
CPU clk: 1536MHz                                                                
DDR channel setting: DDR0 Rank0+1 same                                          
DDR0: 2048MB(auto) @ 912MHz(2T)-13                                              
DataBus test pass!                                                              
AddrBus test pass!                                                              
Load fip header from SD, src: 0x0000c200, des: 0x01400000, size: 0x000000b0     
Load bl30 from SD, src: 0x00010200, des: 0x01000000, size: 0x00009ef0           
Sending bl30........................................OK.                         
Run bl30...                                                                     
Load bl301 from SD, src: 0x0001c200, des: 0x01000000, size: 0x00001690          
Wait bl30...Done                                                                
Sending bl301......OK.                                                          
Run bl301...                                                                    
D, src: 0x00020200, des: 0x10100000, size: 0x00011130                           

--- UART initialized after reboot ---                                           
[Reset cause: unknown]                                                          
[Image: unknown, amlogic_v1.1.3046-00db630 2015-10-28 15:24:31 xiaobo.gu@droid0]
bl30: check_permit, count is 1                                                  
bl30: check_permit: ok!                                                         
chipid: ef be ad de d f0L oad bl33 from SD, src: 0x00034200, des: 0x01000000, s0
ad ba ef be ad de not ES chip                                                   
[0.244487 Inits done]                                                           
secure task start!                                                              
high task start!                                                                
low task start!                                                                 
NOTICE:  BL3-1: v1.0(debug):4d2e34d                                             
NOTICE:  BL3-1: Built : 17:08:35, Oct 29 2015                                   
INFO:    BL3-1: Initializing runtime services                                   
INFO:    BL3-1: Preparing for EL3 exit to normal world                          
INFO:    BL3-1: Next image address = 0x1000000                                  
INFO:    BL3-1: Next image spsr = 0x3c9                                         

U-Boot 2015.01-00070-g5785ef8 (Feb 03 2016 - 04:11:00), Build: jenkins-s905_and7

DRAM:  2 GiB                                                                    
Relocation Offset is: 76f41000                                                  
-------------------------------------------------                               
* Welcome to Hardkernel's ODROID-C2                                             
-------------------------------------------------                               
CPU : AMLogic S905                                                              
S/N : HKC21323359ADD9A                                                          
MAC : 00:1e:06:33:01:da                                                         
BID : HKC2211512                                                                
-------------------------------------------------                               
register usb cfg[1][0] = 0000000077f989c8                                       
register usb cfg[0][1] = 0000000077f989e8                                       
vpu detect type: 5                                                              
vpu clk_level = 7                                                               
set vpu clk: 666667000Hz, readback: 666660000Hz(0x300)                          
MMC:   aml_priv->desc_buf = 0x0000000073f39d30                                  
aml_priv->desc_buf = 0x0000000073f3bec0                                         
SDIO Port B: 0, SDIO Port C: 1                                                  
ret = 1 .[mmc_init] mmc init success                                            
In:    serial                                                                   
Out:   serial                                                                   
Err:   serial                                                                   
** Unrecognized filesystem type **                                              
** Unrecognized filesystem type **                                              
movi: the partiton 'logo' is reading...                                         

MMC read: dev # 0, block # 58976, count 4096 ... 4096 blocks read: OK           
hpd_state=0                                                                     
[CANVAS]addr=0x3f800000 width=3840, height=1440                                 

Not find '576cvbs' mapped VIC                                                   
Not find '576cvbs' mapped VIC                                                   
Error: Bad gzipped data                                                         
There is no valid bmp file at the given address                                 
Saving Environment to MMC...                                                    
Writing to MMC(0)... done                                                       
Net:   Meson_Ethernet                                                           
Hit any key to stop autoboot:  0                                                
** Unrecognized filesystem type **                                              
cfgload: no boot.ini or empty file                                              
** Unrecognized filesystem type **                                              
** Unrecognized filesystem type **                                              
movi: the partiton 'logo' is reading...                                         

MMC read: dev # 0, block # 58976, count 4096 ... 4096 blocks read: OK           
hpd_state=0                                                                     
Not find '576cvbs' mapped VIC                                                   
Not find '576cvbs' mapped VIC                                                   
Error: Bad gzipped data                                                         
There is no valid bmp file at the given address                                 
movi: the partiton 'dtb' is reading...                                          

MMC read: dev # 0, block # 1504, count 128 ... 128 blocks read: OK              
movi: the partiton 'boot' is reading...                                         

MMC read: dev # 0, block # 1632, count 32768 ... 32768 blocks read: OK          
Bad Linux ARM64 Image magic!                                                    
odroidc2#

hm, cfgload doesn't support anything else then reading the boot.ini from a fat partition, to be seen here, line no 55.

umiddelb commented 8 years ago

after following U-Boot commands

setenv m "1080p60hz"
setenv m_bpp "32"
setenv condev "console=ttyS0,115200n8 console=tty0"   # on both
setenv bootargs "root=/dev/mmcblk0p1 rootwait rw ${condev} no_console_suspend hdmimode=${m} m_bpp=${m_bpp} vout=${vout} fsck.repair=yes"
setenv loadaddr "0x11000000"
setenv dtb_loadaddr "0x1000000"
setenv initrd_loadaddr "0x13000000"
ext4load mmc 0:1 ${initrd_loadaddr} /boot/uInitrd
ext4load mmc 0:1 ${loadaddr} /boot/Image
ext4load mmc 0:1 ${dtb_loadaddr} /boot/meson64_odroidc2.dtb
booti ${loadaddr} ${initrd_loadaddr} ${dtb_loadaddr}

I get

odroidc2#setenv m "1080p60hz"
odroidc2#setenv m_bpp "32"
odroidc2#setenv condev "console=ttyS0,115200n8 console=tty0"   # on both
odroidc2#setenv bootargs "root=/dev/mmcblk0p1 rootwait rw ${condev} no_console_suspend hdmimode=${m} m_bpp=${m_bpp} vout=${vout} fsck.repair=yes"
odroidc2#setenv loadaddr "0x11000000"
odroidc2#setenv dtb_loadaddr "0x1000000"
odroidc2#setenv initrd_loadaddr "0x13000000"
odroidc2#ext4load mmc 0:1 ${initrd_loadaddr} /boot/uInitrd
3945029 bytes read in 213 ms (17.7 MiB/s)
odroidc2#ext4load mmc 0:1 ${loadaddr} /boot/Image
12936808 bytes read in 647 ms (19.1 MiB/s)
odroidc2#ext4load mmc 0:1 ${dtb_loadaddr} /boot/meson64_odroidc2.dtb
27013 bytes read in 31 ms (850.6 KiB/s)
odroidc2#
odroidc2#booti ${loadaddr} ${initrd_loadaddr} ${dtb_loadaddr}
## Loading init Ramdisk from Legacy Image at 13000000 ...
   Image Name:   uInitrd
   Image Type:   AArch64 Linux RAMDisk Image (uncompressed)
   Data Size:    3944965 Bytes = 3.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
load dtb from 0x1000000 ......
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x1000000
   Loading Ramdisk to 73b74000, end 73f37205 ... OK
   Loading Device Tree to 000000001fff6000, end 000000001ffff984 ... OK

Starting kernel ...

uboot time: 196894269 us
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.14.29-20 (root@a53_b1) (gcc version 5.3.1 20160121 (Ubuntu/Linaro 5.3.1-7ubuntu1) ) #1 SMP PREEMPT Fri Feb 12 06:18:16 BRST 2016
[    0.000000] CPU: AArch64 Processor [410fd034] revision 4
[    0.000000] secmon: share mem setup
[    0.000000] Reserved memory: initialized node linux,secmon, compatible id aml_secmon_memory
[    0.000000] __reserved_mem_alloc_size: linux,meson-fb
[    0.000000] fb: Reserved memory: created fb at 0x0000000078000000, size 128 MiB
[    0.000000] Reserved memory: initialized node linux,meson-fb, compatible id amlogic, fb-memory
[    0.000000] __reserved_mem_alloc_size: linux,di
[    0.000000] DI reserved memory: created CMA memory pool at 0x0000000076200000, size 30 MiB
[    0.000000] Reserved memory: initialized node linux,di, compatible id amlogic, di-mem
[    0.000000] __reserved_mem_alloc_size: linux,ion-dev
[    0.000000] linux,ion-dev add multi user:ffffffc001c98078
[    0.000000] ion_dev mem setup
[    0.000000] Reserved memory: initialized node linux,ion-dev, compatible id amlogic, idev-mem
[    0.000000] ppmgr share mem setup
[    0.000000] linux,ion-dev add multi user:ffffffc001ca0940
[    0.000000] Reserved memory: initialized node linux,ion-dev, compatible id amlogic, idev-mem
[    0.000000] __reserved_mem_alloc_size: linux,codec_mm_cma
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000067c00000, size 188 MiB
[    0.000000] Reserved memory: initialized node linux,codec_mm_cma, compatible id shared-dma-pool
[    0.000000] __reserved_mem_alloc_size: linux,picdec
[    0.000000] Reserved memory: created CMA memory pool at 0x0000000064c00000, size 48 MiB
[    0.000000] Reserved memory: initialized node linux,picdec, compatible id shared-dma-pool
[    0.000000] __reserved_mem_alloc_size: linux,codec_mm_reserved
[    0.000000] codec_mm:vdec: reserved mem setup
[    0.000000] Reserved memory: initialized node linux,codec_mm_reserved, compatible id amlogic, codec-mm-reserved
[    0.000000] cma: Reserved 8 MiB at 60000000
[    0.000000] psci: probing function IDs from device-tree
[    0.000000] PERCPU: Embedded 12 pages/cpu @ffffffc0741a9000 s18944 r8192 d22016 u49152
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 478344
[    0.000000] Kernel command line: root=/dev/mmcblk0p1 rootwait rw console=ttyS0,115200n8 console=tty0 no_console_suspend hdmimode=1080p60hz m_bpp=32 vout= fsck.repair=yes
[    0.000000] logo: get hdmimode: 1080p60hz
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.000000] Memory: 1505632K/1947648K available (8127K kernel code, 865K rwdata, 2752K rodata, 882K init, 3204K bss, 442016K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vmalloc : 0xffffff8000000000 - 0xffffff8040000000   (  1024 MB)
[    0.000000]     vmemmap : 0xffffff8040010000 - 0xffffff80421d0000   (    33 MB)
[    0.000000]     modules : 0xffffffbffc000000 - 0xffffffc000000000   (    64 MB)
[    0.000000]     memory  : 0xffffffc000000000 - 0xffffffc078000000   (  1920 MB)
[    0.000000]       .init : 0xffffffc001b21000 - 0xffffffc001bfda00   (   883 kB)
[    0.000000]       .text : 0xffffffc001080000 - 0xffffffc001b20e84   ( 10884 kB)
[    0.000000]       .data : 0xffffffc001bfe000 - 0xffffffc001cd6668   (   866 kB)
[    0.000000] SLUB: HWalign=64, Order=0-1, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:64 nr_irqs:64 0
[    0.000006] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483648000ns
[    0.000025] mclk->mux_reg =ffffff8000004990,mclk->reg =ffffff8000008994
[    0.000069] local timer MESON TIMER-G mclk->mux_reg =ffffff8000004990,mclk->reg =ffffff800000a998
[    0.000089] local timer MESON TIMER-H mclk->mux_reg =ffffff8000004990,mclk->reg =ffffff800000c99c
[    0.000109] local timer MESON TIMER-I mclk->mux_reg =ffffff8000004990,mclk->reg =ffffff800000e9a0
[    0.000120] Switching to timer-based delay loop
[    0.000324] Console: colour dummy device 80x25
[    0.000835] console [tty0] enabled
[    0.000852] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[    0.000871] pid_max: default: 32768 minimum: 301
[    0.000932] Security Framework initialized
[    0.000964] AppArmor: AppArmor initialized
[    0.001006] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.001019] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.002637] device-tree: Duplicate name in /efusekey, renamed to "key0#1"
[    0.002654] device-tree: Duplicate name in /efusekey, renamed to "key1#1"
[    0.002668] device-tree: Duplicate name in /efusekey, renamed to "key2#1"
[    0.002681] device-tree: Duplicate name in /efusekey, renamed to "key3#1"
[    0.004105] Initializing cgroup subsys debug
[    0.004118] Initializing cgroup subsys devices
[    0.004129] Initializing cgroup subsys freezer
[    0.004140] Initializing cgroup subsys net_cls
[    0.004152] Initializing cgroup subsys blkio
[    0.004162] Initializing cgroup subsys perf_event
[    0.004196] ftrace: allocating 28729 entries in 113 pages
[    0.028989] /cpus/cpu@0: Missing clock-frequency property
[    0.029018] /cpus/cpu@1: Missing clock-frequency property
[    0.029031] /cpus/cpu@2: Missing clock-frequency property
[    0.029043] /cpus/cpu@3: Missing clock-frequency property
[    0.029058] hw perfevents: enabled with arm/armv8-pmuv3 PMU driver, 7 counters available
[    0.061652] Meson chip version = RevB (1F:B - 0:0)
[    0.080802] CPU1: Booted secondary processor
[    0.100784] CPU2: Booted secondary processor
[    0.120772] CPU3: Booted secondary processor
[    0.120824] Brought up 4 CPUs
[    0.120856] SMP: Total of 4 processors activated.
[    0.121346] devtmpfs: initialized
[    0.132482] pinctrl core: initialized pinctrl subsystem
[    0.132751] regulator-dummy: no parameters
[    0.133041] NET: Registered protocol family 16
[    0.133611] register canvas platform driver
[    0.133622] codec:ignore bus ops for cpu=25
[    0.133630] codec:ignore bus ops for cpu=29
[    0.133638] codec:register amports ops for bus[0]
[    0.133647] codec:register amports ops for bus[4]
[    0.133655] codec:register amports ops for bus[3]
[    0.133662] codec:register amports ops for bus[2]
[    0.133670] codec:register amports ops for bus[1]
[    0.133678] codec:register amports ops for bus[13]
[    0.133687] codec:register amports ops for bus[2]
[    0.133694] codec:register amports ops for bus[14]
[    0.133716] register rdma platform driver
[    0.134008] vdso: 2 pages (1 code, 1 data) at base ffffffc001c06000
[    0.134044] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.134568] DMA: preallocated 256 KiB pool for atomic allocations
[    0.135765] software IO TLB [mem 0x5d000000-0x5d400000] (4MB) mapped at [ffffffc05d000000-ffffffc05d3fffff]
[    0.135779] Serial: AMBA PL011 UART driver
[    0.135849] hdmitx: system: amhdmitx_init
[    0.135857] hdmitx: system: Ver: 2014May6
[    0.135878] aml_i2c version: 20140813
[    0.135907] tv_vout: tv_init_module
[    0.135919] tv_vout: major number 254 for disp
[    0.135928] vout_notify: vout_register_server
[    0.135936] tv_vout: register tv module server ok
[    0.135968] codec_mm:codec_mm_module_init
[    0.136084] gxbb clk HIU base is 0xffffff8000058000
[    0.136093] gxbb clk ao base is 0xffffff800005a000
[    0.136128] register mpll_clk_out0 success done
[    0.136139] register mpll_clk_out1 success done
[    0.136152] register mpll_clk_out2 success done
[    0.136315] register sys pll success done
[    0.136356] clkrate [ xtal   ] : 24000000Hz
[    0.136366] clkrate [ 32Khz  ] : 32000Hz
[    0.136374] clkrate [ clk81  ] : 166666666Hz
[    0.136383] clkrate [ fixed_pll      ] : 2000000000Hz
[    0.136392] clkrate [ fclk_div2      ] : 1000000000Hz
[    0.136400] clkrate [ fclk_div3      ] : 666666000Hz
[    0.136409] clkrate [ fclk_div4      ] : 500000000Hz
[    0.136418] clkrate [ fclk_div5      ] : 400000000Hz
[    0.136426] clkrate [ fclk_div7      ] : 285714000Hz
[    0.136453] gxbb clock initialization complete
[    0.136542] msr_clk_reg0=ffffff800005c75c,msr_clk_reg2=ffffff800005e764
[    0.137337] amlogic iomap probe done
[    0.137482] Init pinux probe!
[    0.138164] pinmux-gxbb c1109880.pinmux: Probed amlogic pinctrl driver
[    0.138380] aml-i2c c1108500.i2c: add adapter aml_i2c_adap1(ffffffc05d9f30e0)
[    0.138513] aml-i2c c11087c0.i2c: add adapter aml_i2c_adap2(ffffffc05d9f38e0)
[    0.138618] genirq: Setting trigger mode 8 for irq 241 failed (gic_set_type+0x0/0xb8)
[    0.138638] genirq: Setting trigger mode 8 for irq 242 failed (gic_set_type+0x0/0xb8)
[    0.138699] genirq: Setting trigger mode 8 for irq 241 failed (gic_set_type+0x0/0xb8)
[    0.138718] genirq: Setting trigger mode 8 for irq 242 failed (gic_set_type+0x0/0xb8)
[    0.139336] codec:codec map io source 0x00000000c1100000,size=1048576 to 0xffffff8000680000
[    0.139358] codec:codec map io source 0x00000000c8820000,size=65536 to 0xffffff80000a0000
[    0.139376] codec:codec map io source 0x00000000c883c000,size=8192 to 0xffffff8000094000
[    0.139406] codec:codec map io source 0x00000000c8100000,size=1048576 to 0xffffff8000800000
[    0.139426] codec:codec map io source 0x00000000d0100000,size=262144 to 0xffffff8000980000
[    0.139448] codec:codec map io source 0x00000000c8838000,size=1024 to 0xffffff8000098000
[    0.139505] codec_mm has 2 memory regions
[    0.139519] codec_mm codec_mm.15: assigned reserved memory node linux,codec_mm_cma ok
[    0.139536] codec_mm:codec_mm_reserved_init 0000000060b00000->0000000064c00000
[    0.139549] codec_mm codec_mm.15: assigned reserved memory node linux,codec_mm_reserved ok
[    0.139562] codec_mm:codec_mm_probe mem init done
[    0.139572] codec_mm:add reserve memory 0000000060b00000(aligned 0000000060b00000) size=4100000(aligned 4100000)
[    0.139597] codec_mm has 2 memory regions
[    0.139609] codec_mm codec_mm.15: assigned reserved memory node linux,codec_mm_cma ok
[    0.139623] codec_mm:codec_mm_reserved_init 0000000060b00000->0000000064c00000
[    0.139636] codec_mm codec_mm.15: assigned reserved memory node linux,codec_mm_reserved ok
[    0.139648] codec_mm:codec_mm reserved memory probed done
[    0.139656] codec_mm:codec_mm_probe ok
[    0.140273] VPU driver version: v01
[    0.140283] vpu driver detect cpu type: gxbaby
[    0.140298] load vpu_clk in dts: 666667000Hz(7)
[    0.140322] vpu_probe OK
[    0.140502] hdmitx: system: amhdmitx_probe
[    0.140700] hdmitx: system: not find match pwr-ctl
[    0.140711] hdmitx hpd irq = 89
[    0.140894] hdmitx20: Mapped PHY: 0xc0800000
[    0.140905] hdmitx20: Mapped PHY: 0xc1104400
[    0.140930] hdmitx20: Mapped PHY: 0xc8100000
[    0.140939] hdmitx20: Mapped PHY: 0xc8834000
[    0.140949] hdmitx20: Mapped PHY: 0xc883a000
[    0.140957] hdmitx20: Mapped PHY: 0xc883c000
[    0.140971] hdmitx20: Mapped PHY: 0xd0100000
[    0.140981] hdmitx20: Mapped PHY: 0xda83a000
[    0.141220] avmute set to 1
[    0.141473] canvas_probe reg=00000000c8838000,size=400
[    0.141489] canvas maped reg_base =ffffff80000b2000
[    0.144541] rdma_probe
[    0.174942] bio: create slab <bio-0> at 0
[    0.175385] SCSI subsystem initialized
[    0.175524] usbcore: registered new interface driver usbfs
[    0.175559] usbcore: registered new interface driver hub
[    0.175610] usbcore: registered new device driver usb
[    0.175675] media: Linux media interface: v0.10
[    0.175706] Linux video capture interface: v2.00
[    0.175750] pps_core: LinuxPPS API ver. 1 registered
[    0.175759] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.175781] PTP clock support registered
[    0.175918] logo: logo_init
[    0.175948] Advanced Linux Sound Architecture Driver Initialized.
[    0.176235] Bluetooth: Core ver 2.18
[    0.176258] NET: Registered protocol family 31
[    0.176267] Bluetooth: HCI device and connection manager initialized
[    0.176281] Bluetooth: HCI socket layer initialized
[    0.176292] Bluetooth: L2CAP socket layer initialized
[    0.176315] Bluetooth: SCO socket layer initialized
[    0.176329] NetLabel: Initializing
[    0.176336] NetLabel:  domain hash size = 128
[    0.176344] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.176380] NetLabel:  unlabeled traffic allowed by default
[    0.176848] Switched to clocksource Timer-E
[    0.195662] AppArmor: AppArmor Filesystem Enabled
[    0.199766] NET: Registered protocol family 2
[    0.200242] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    0.200340] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[    0.200529] TCP: Hash tables configured (established 16384 bind 16384)
[    0.200602] TCP: reno registered
[    0.200614] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[    0.200655] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[    0.200808] NET: Registered protocol family 1
[    0.200969] Unpacking initramfs...
[    0.332903] Freeing initrd memory: 3852K (ffffffc073b74000 - ffffffc073f37000)
[    0.333457] kvm [1]: Using HYP init bounce page @5c349000
[    0.333564] kvm [1]: Cannot obtain GICH resource
[    0.333596] kvm [1]: error initializing Hyp mode: -22
[    0.333975] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.334050] audit: initializing netlink subsys (disabled)
[    0.334100] audit: type=2000 audit(0.320:1): initialized
[    0.334524] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    0.338035] VFS: Disk quotas dquot_6.5.2
[    0.338173] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.339323] msgmni has been set to 3436
[    0.340171] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.340187] io scheduler noop registered
[    0.340196] io scheduler deadline registered
[    0.340279] io scheduler cfq registered (default)
[    0.361922] meson-rng c8834000.rng: hwrng registered
[    0.362053] mali-utgard d00c0000.mali: max pp is 3
[    0.362065] mali-utgard d00c0000.mali: set min pp to default 1
[    0.362076] mali-utgard d00c0000.mali: min pp is 1
[    0.362086] mali-utgard d00c0000.mali: set min clk default to 0
[    0.362097] mali-utgard d00c0000.mali: min clk  is 0
[    0.362113] mali-utgard d00c0000.mali: hiu io source  0xffffff80000e4000
[    0.362129] mali-utgard d00c0000.mali: hiu io source  0xffffff80000e6000
[    0.362141] mali-utgard d00c0000.mali: num of pp used most of time 3
[    0.362152] mali-utgard d00c0000.mali: clock dvfs table size is 6
[    0.362164] mali-utgard d00c0000.mali: max clk set 4
[    0.362174] mali-utgard d00c0000.mali: max clk  is 4
[    0.362184] mali-utgard d00c0000.mali: turbo clk set to 5
[    0.362195] mali-utgard d00c0000.mali: turbo clk  is 5
[    0.362205] mali-utgard d00c0000.mali: default clk set to 2
[    0.362215] mali-utgard d00c0000.mali: default clk  is 2
[    0.362271] mali-utgard d00c0000.mali: ====================0====================
[    0.362271] clk_freq= 125000000, clk_parent=fclk_div4, voltage=1150, keep_count=5, threshod=<30 120>, clk_sample=125
[    0.362298] mali-utgard d00c0000.mali: ====================1====================
[    0.362298] clk_freq= 285000000, clk_parent=fclk_div7, voltage=1150, keep_count=5, threshod=<100 190>, clk_sample=285
[    0.362326] mali-utgard d00c0000.mali: ====================2====================
[    0.362326] clk_freq= 400000000, clk_parent=fclk_div5, voltage=1150, keep_count=5, threshod=<152 207>, clk_sample=400
[    0.362353] mali-utgard d00c0000.mali: ====================3====================
[    0.362353] clk_freq= 500000000, clk_parent=fclk_div4, voltage=1150, keep_count=5, threshod=<180 220>, clk_sample=500
[    0.362380] mali-utgard d00c0000.mali: ====================4====================
[    0.362380] clk_freq= 666000000, clk_parent=fclk_div3, voltage=1150, keep_count=5, threshod=<210 236>, clk_sample=666
[    0.362407] mali-utgard d00c0000.mali: ====================5====================
[    0.362407] clk_freq= 792000000, clk_parent=  gp0_pll, voltage=1150, keep_count=5, threshod=<230 255>, clk_sample=792
[    0.363834] gpu cooling register okay with err=0
[    0.363873] gpu core cooling register okay with err=0
[    0.364020] Mali: Mali device driver loaded
[    0.365755] loop: module loaded
[    0.366001] zram: Created 1 device(s) ...
[    0.366297] mtdoops: mtd device (mtddev=name/number) must be supplied
[    0.373491] libphy: stmmac: probed
[    0.373514] eth0: PHY ID 001cc916 at 0 IRQ POLL (stmmac-0:00) active
[    0.373525] eth0: PHY ID 001cc916 at 7 IRQ POLL (stmmac-0:07)
[    0.373791] usbcore: registered new interface driver cdc_ether
[    0.373844] usbcore: registered new interface driver cdc_ncm
[    0.373936] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.373947] ehci-h20ahb: H20AHB-EHCI Host Controller driver
[    0.374021] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.374075] usbcore: registered new interface driver cdc_acm
[    0.374085] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    0.374126] usbcore: registered new interface driver usb-storage
[    0.374213] usbcore: registered new interface driver usbserial
[    0.374583] mousedev: PS/2 mouse device common for all mice
[    0.374781] i2c /dev entries driver
[    0.374958] IR NEC protocol handler initialized
[    0.374967] IR RC5(x) protocol handler initialized
[    0.374976] IR RC6 protocol handler initialized
[    0.374984] IR JVC protocol handler initialized
[    0.374992] IR Sony protocol handler initialized
[    0.375000] IR RC5 (streamzap) protocol handler initialized
[    0.375009] IR SANYO protocol handler initialized
[    0.375017] IR MCE Keyboard/mouse protocol handler initialized
[    0.375437] ledtrig-cpu: registered to indicate activity on CPUs
[    0.375595] usbcore: registered new interface driver usbhid
[    0.375605] usbhid: USB HID core driver
[    0.375795] ashmem: initialized
[    0.375897] logger: created 256K log 'log_main'
[    0.375983] logger: created 256K log 'log_events'
[    0.376068] logger: created 256K log 'log_radio'
[    0.376158] logger: created 256K log 'log_system'
[    0.376400] ==uart0 reg addr = ffffff80002764c0
[    0.376428] c81004c0.serial: ttyS0 at MMIO 0xc81004c0 (irq = 225, base_baud = 1500000) is a meson_uart
[    0.376449] ttyS0 use xtal 24000000 change 0 to 115200
[    2.017212] console [ttyS0] enabled
[    2.020824] ==uart1 reg addr = ffffff80002784c0
[    2.025147] c11084c0.serial: ttyS1 at MMIO 0xc11084c0 (irq = 58, base_baud = 1500000) is a meson_uart
[    2.074628] dwc_otg: usb1: type: 1 speed: 0, config: 0, dma: 0, id: 1, phy: c0000020, ctrl: 0
[    2.080143] dwc_otg: Core Release: 3.10a
[    2.081373] dwc_otg: Setting default values for core params
[    2.086909] dwc_otg: curmode: 1, host_only: 1
[    2.093392] dwc_otg: Using Buffer DMA mode
[    2.095258] dwc_otg: OTG VER PARAM: 1, OTG VER FLAG: 1
[    2.100354] dwc_otg: Working on port type = HOST
[    2.105173] dwc_otg dwc2_b: DWC OTG Controller
[    2.109337] dwc_otg dwc2_b: new USB bus registered, assigned bus number 1
[    2.116056] dwc_otg dwc2_b: irq 63, io mem 0x00000000
[    2.121054] dwc_otg: -------hcd->flags.d32 = 0
[    2.125460] dwc_otg: Init: Port Power? op_state=1
[    2.130108] dwc_otg: Init1: Power Port (0)
[    2.134577] hub 1-0:1.0: USB hub found
[    2.137898] hub 1-0:1.0: 1 port detected
[    2.141908] dwc_otg: usb0: type: 0 speed: 0, config: 0, dma: 0, id: 0, phy: c0000000, ctrl: 0
[    2.162782] dwc_otg: Core Release: 3.10a
[    2.162805] dwc_otg: Setting default values for core params
[    2.166602] dwc_otg: curmode: 1, host_only: 0
[    2.175112] dwc_otg: Using Buffer DMA mode
[    2.175135] dwc_otg: OTG VER PARAM: 1, OTG VER FLAG: 1
[    2.180058] dwc_otg: Working on port type = OTG
[    2.184534] dwc_otg: Current port type: SLAVE
[    2.188933] dwc_otg dwc2_a: DWC OTG Controller
[    2.193257] dwc_otg dwc2_a: new USB bus registered, assigned bus number 2
[    2.199995] dwc_otg dwc2_a: irq 62, io mem 0x00000000
[    2.205307] hub 2-0:1.0: USB hub found
[    2.208714] hub 2-0:1.0: 1 port detected
[    2.212670] dwc_otg: Dedicated Tx FIFOs mode
[    2.216963] dwc_otg: using timer detectid change, ffffffc05da07800
[    2.223228] secmon has 1 memory regions
[    2.226728] secmon: share in base: 0xffffff80004ea000, share out base: 0xffffff80004ec000
[    2.234833] secmon secmon.3: assigned reserved memory node linux,secmon ok
[    2.241684] secmon: probe done
[    2.244753] storage: storage in base: 0xffffff8001780000
[    2.249920] storage: storage out base: 0xffffff8001800000
[    2.255259] storage: storage block base: 0xffffff8001880000
[    2.260785] storage: probe done!
[    2.264015] Error: Driver 'ICPlus IP175C' is already registered, aborting...
[    2.270965] libphy: ICPlus IP175C: Error -16 in registering driver
[    2.277552] aml_sd_emmc_probe: line 2954
[    2.280964] mmc driver version: 1.07, 2015-01-21: fix a bug in tuning which caused eMMC data CRC error
[    2.290390] aml_sd_emmc_reg_init 677
[    2.293817] pdata->caps 60007
[    2.296660] pdata->caps2 0
[    2.299343] get property:                ocr_avail, value:0x00200080
[    2.305630] get property:                    f_min, value:0x00061a80
[    2.311974] get property:                    f_max, value:0x0510ff40
[    2.318231] get property:             max_req_size, value:0x00020000
[    2.324519] get property:                   irq_in, value:0x00000003
[    2.330823] get property:                  irq_out, value:0x00000005
[    2.337154] dwc_otg: Indeed it is in host mode hprt0 = 00021501
[    2.346852] get property:              power_level, value:0x00000001
[    2.349278] get property:                  gpio_cd, str:
[    2.354536] get property:               gpio_power, str:
[    2.366857] get property:                  pinname, str:sd
[    2.366889] get property:                 jtag_pin, str:
[    2.371965] get property:                card_type, value:0x00000005
[    2.378271] get property:                gpio_dat3, str:
[    2.383524] get property:               gpio_volsw, str:
[    2.456924] [aml_sd_emmc_probe] aml_sd_emmc_probe() success!
[    2.456972] aml_sd_emmc_probe: line 2954
[    2.467956] [aml_is_card_insert] card IN

[    2.476917] [aml_is_card_insert] card IN
[    2.476917] [    2.477881] normal card in
[    2.480780] aml_sd_emmc_reg_init 677
[    2.484181] pdata->caps 80000d47
[    2.487299] pdata->caps2 80a1
[    2.490215] get property:                ocr_avail, value:0x00200080
[    2.496510] get property:                    f_min, value:0x00061a80
[    2.502812] get property:                    f_max, value:0x05f5e100
[    2.509109] get property:             max_req_size, value:0x00020000
[    2.515401] get property:                  pinname, str:emmc
[    2.521011] get property:                card_type, value:0x00000001
[    2.527335] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.533712] get property:                gpio_dat3, str:
[    2.533926] dwc_otg: Indeed it is in host mode hprt0 = 00001101
[    2.544819] get property:                 hw_reset, str:
[    2.606866] aml_emmc_hw_reset 1356
[    2.606868] [aml_sd_emmc_probe] aml_sd_emmc_probe() success!
[    2.607012] ion_dev has 1 memory regions
[    2.619094] fb: osd_init_module
[    2.619183] fb: viu vsync irq: 35
[    2.620516] meson-fb has 1 memory regions
[    2.625796] meson-fb meson-fb.12: assigned reserved memory node linux,meson-fb ok
[    2.631928] tv_vout: tv_set_current_vmode[672]fps_target_mode=10
[    2.635107] [aml_sd_emmc_irq] emmc: resp_timeout,vstat:0x2800,virqc:3fff
[    2.635107] 
[    2.635108] aml_sd_emmc_data_thread 2211 emmc: cmd:1
[    2.635118] emmc: error -110 whilst initialising MMC card
[    2.657437] tv_vout: mode is 10,sync_duration_den=1,sync_duration_num=60
[    2.664074] switch_vpu_mem_pd: vencp ON
[    2.667882] tv_vout: TV mode 720p60hz selected.
[    2.672350] tv_vout: new mode =720p60hz set ok
[    2.676746] vout_serve: vinfo mode is: 720p60hz
[    2.681241] switch_vpu_mem_pd: viu_osd1 ON
[    2.685286] switch_vpu_mem_pd: viu_osd2 ON
[    2.689346] switch_vpu_mem_pd: viu_osd_scale ON
[    2.693963] osd_rdma: osd_rdma_init: rmda_table p=0x60049000,op=0x60049000 , v=0xffffff80004fe000
[    2.702640] fb: osd_probe vinfo:ffffffc001c992e8
[    2.707201] fb: Frame buffer memory assigned at
[    2.711506] fb:     phy: 0x78000000, vir:0xffffff8003c00000, size=98304K
[    2.718327] fb: osd_set_res_bootargs : mode 60
[    2.722717] fb: osd_set_res_bootargs, no available resolution info.
[    2.728764] fb: fb def : 1280 720 1280 1440 32
[    2.733325] fb: init fbdev bpp is:32
[    2.736872] fb: ---------------clear fb0 memory
[    2.768707] fb: osd[0] canvas.idx =0x40
[    2.768709] fb: osd[0] canvas.addr=0x78000000
[    2.768710] fb: osd[0] canvas.width=5120
[    2.768711] fb: osd[0] canvas.height=1440
[    2.785678] Console: switching to colour frame buffer device 160x45
[    2.812550] hub 1-1:1.0: USB hub found
[    2.814770] hub 1-1:1.0: 4 ports detected
[    2.816618] fb: Frame buffer memory assigned at
[    2.816619] fb:     phy: 0x7e000000, vir:0xffffff8001a00000, size=1024K
[    2.836474] fb: osd probe OK
[    2.836625] vout_serve: vout_init_module
[    2.837725] vout_serve: meson_vout_probe
[    2.841543] vout_serve: create vout attribute OK
[    2.846141] ge2d: ge2d_init_module
[    2.849474] ge2d: ge2d_dev major:244
[    2.853126] ge2d: ge2d clock is 400 MHZ
[    2.856795] ge2d: ge2d: pdev=ffffffc05da98400, irq=182, rstc=0xffffffc05bf5cd80, clk=ffffffc05d9f6c00
[    2.865975] ge2d: mapped phy: 0xd0160000
[    2.869828] ge2d: ge2d start monitor
[    2.873446] ge2d: ge2d workqueue monitor start
[    2.873522] codec:Amlogic A/V streaming port init
[    2.874087] codec:get gate demux control ok ffffffc05bf8b8c0
[    2.874090] codec:get gate parser_top control ok ffffffc05bf8b940
[    2.874094] codec:get gate vpu_intr control ok ffffffc05bf8b9c0
[    2.874099] codec:get gate vdec control ok ffffffc05bf8ba40
[    2.874249] codec:[tsync_pcr_init]init success.
[    2.874279] codec:regist mpeg12 codec profile
[    2.874308] codec:regist mpeg4 codec profile
[    2.874310] codec:amvdec_vc1 module init
[    2.874337] codec:regist vc1 codec profile
[    2.874338] codec:amvdec_h264 module init
[    2.874384] codec:regist h264 codec profile
[    2.874385] codec:amvdec_h264mvc module init
[    2.874413] codec:regist hmvc codec profile
[    2.874414] codec:amvdec_h264_4k2k module init
[    2.874444] codec:regist h264_4k2k codec profile
[    2.874446] codec:amvdec_h265 module init
[    2.874477] codec:regist hevc codec profile
[    2.874505] codec:regist mjpeg codec profile
[    2.874506] codec:amvdec_real module init
[    2.874534] codec:regist real codec profile
[    2.874535] codec:amvdec_avs module init
[    2.874562] codec:regist avs codec profile
[    2.874600] amvenc_avc_probe -- reserved memory config fail.
[    2.874602] amvenc_avc - cma memory pool size: 32 MB
[    2.874614] encode_wq_init.
[    2.874622] encode start monitor.
[    2.874762] jpegenc module init
[    2.874853] codec:picdec_driver_probe called.
[    2.874855] picdec has 1 memory regions
[    2.874876] picdec picdec.20: assigned reserved memory node linux,picdec ok
[    2.874877] codec:picdec_driver_probe done.
[    2.874878] codec:reserved memory config fail , use CMA      .
[    2.986852] encode workqueue monitor start.
[    3.030641] codec:cma memory is 64c00000 , size is  3000000
[    3.034218] codec:0 addr is 64c00000################
[    3.038983] codec:1 addr is 64d51800################
[    3.043955] switch_vpu_mem_pd: vpu_arb ON
[    3.048168] codec:kreate_ge2d_work_queue video task ok
[    3.053210] codec:register clk_set_setting cpu[31]
[    3.057911] di_module_init ok.
[    3.060692] di_module_init: major 240
[    3.064442] di_probe
[    3.066586] deinterlace has 1 memory regions
[    3.070724] di reveser memory 0x76200000, size 30MB.
[    3.075615] deinterlace deinterlace.22: assigned reserved memory node linux,di ok
[    3.083145] rdma_register, rdma_table_addr ffffff8000642000 rdma_table_addr_phy 6004e000 reg_buf ffffffc05b828000
[    3.093212] rdma_register success, handle 1 table_size 8192
[    3.098733] di_probe allocate rdma channel 1.
[    3.103038] DI hw version 2.
[    3.105888] 0x000000c3:Y=c3,U=0,V=0
[    3.109340] 0x000000c4:Y=c4,U=0,V=0
[    3.112783] 0x000000c5:Y=c5,U=0,V=0
[    3.116234] 0x000000c6:Y=c6,U=0,V=0
[    3.119689] 0x000000c7:Y=c7,U=0,V=0
[    3.123133] 0x000000c8:Y=c8,U=0,V=0
[    3.126583] 0x000000c9:Y=c9,U=0,V=0
[    3.130041] 0x000000ca:Y=ca,U=0,V=0
[    3.133483] 0x000000cb:Y=cb,U=0,V=0
[    3.136940] 0x000000cc:Y=cc,U=0,V=0
[    3.140384] 0x000000cd:Y=cd,U=0,V=0
[    3.143833] 0x000000ce:Y=ce,U=0,V=0
[    3.147321] 0x000000cf:Y=cf,U=0,V=0
[    3.150850] di_probe here.
[    3.153417] switch_vpu_mem_pd: di_pre OFF
[    3.157538] efusekeynum: 4
[    3.160054] efusekeyname:             mac    offset:     0   size:     6
[    3.166262] efusekeyname:          mac_bt    offset:     6   size:     6
[    3.172490] efusekeyname:        mac_wifi    offset:    12   size:     6
[    3.178699] efusekeyname:            usid    offset:    18   size:    16
[    3.185007] efuse efuse.7: probe OK!
[    3.188612] 6aml_unifykeys_init done!
[    3.192133] ppmgr module init func called
[    3.196139] ppmgr_driver_probe called
[    3.199731] ppmgr has 1 memory regions
[    3.203444] init ppmgr memsource 74200000->761fffff
[    3.208448] ppmgr_probe done
[    3.211294] ionvideo-000: V4L2 device registered as video13
[    3.216465] sd: clk 83333333 SDR mode tuning start
[    3.217318] rx_tuning_result[0][0] = 10
[    3.218058] rx_tuning_result[0][1] = 10
[    3.218809] rx_tuning_result[0][2] = 10
[    3.219560] rx_tuning_result[0][3] = 10
[    3.220313] rx_tuning_result[0][4] = 10
[    3.221064] rx_tuning_result[0][5] = 10
[    3.221809] rx_tuning_result[0][6] = 10
[    3.222545] rx_tuning_result[0][7] = 10
[    3.223368] rx_tuning_result[0][9] = 10
[    3.224119] rx_tuning_result[0][10] = 10
[    3.224869] rx_tuning_result[0][11] = 10
[    3.224872] best_win_start =9, best_win_size =11
[    3.224875] sd_emmc_regs->gclock =0x100024c, sd_emmc_regs->gadjust =0x22000
[    3.224881] sd: gclock =0x100024c, gdelay=0x0
[    3.224882] gadjust=0x22000
[    3.224891] sd: new ultra high speed SDR104 SDHC card at address 0007
[    3.225210] sd: clock 83333333, 4-bit-bus-width
[    3.225210]  
[    3.225210] mmcblk0: sd:0007 SD16G 14.4 GiB 
[    3.298530] [dsp]register dsp to char divece(257)
[    3.299402]  mmcblk0: p1
[    3.305931] amaudio: driver amaudio succuess!
[    3.309976] amlvideo_init called
[    3.312980] amlvideo_create_instance called
[    3.317302] v4l2_dev.name=:amlvideo-000
[    3.321158] amlvideo-000: V4L2 device registered as video10
[    3.326598] 
[    3.326598] 
[    3.326598]  VECM init
[    3.326598] 
[    3.334578] saradc c1108680.saradc: initialized by BL30
[    3.339399] saradc c1108680.saradc: calibration start:
[    3.344520] saradc c1108680.saradc: nominal=0, value=4
[    3.349615] saradc c1108680.saradc: nominal=256, value=253
[    3.355042] saradc c1108680.saradc: nominal=512, value=510
[    3.360482] saradc c1108680.saradc: nominal=768, value=767
[    3.365910] saradc c1108680.saradc: nominal=1023, value=1022
[    3.371480] saradc c1108680.saradc: calibration end: coef=4080
[    3.377315] remote: Driver init
[    3.380388] remote: platform_data g_remote_ao_offset=580
[    3.385617] remote: platform_data irq =228
[    3.389702] remote: set drvdata completed
[    3.393733] remote: device_create_file completed 
[    3.398731] input: aml_keypad as /devices/meson-remote.9/input/input0
[    3.405008] remote: input_register_device completed 
[    3.409896] remote: [0x480] = 0x1dd0190
[    3.413649] remote: [0x484] = 0xf800ca
[    3.417382] remote: [0x488] = 0x82006e
[    3.421090] remote: [0x48c] = 0x3c0030
[    3.424797] remote: [0x490] = 0x30fa0013
[    3.428665] remote: [0x498] = 0x6f19000
[    3.432450] remote: [0x49c] = 0xbe40
[    3.436100] remote: [0x580] = 0xfa00a0
[    3.439695] remote: [0x584] = 0xfa00a0
[    3.443404] remote: [0x588] = 0xfa00a0
[    3.447119] remote: [0x58c] = 0x640030
[    3.450822] remote: [0x590] = 0x30fa0013
[    3.454703] remote: [0x598] = 0x961b800
[    3.458504] remote: [0x59c] = 0x9740
[    3.462034] remote: [0x5a0] = 0x104
[    3.465484] remote: [0x5a4] = 0x0
[    3.468768] remote: [0x5a8] = 0x0
[    3.472039] remote: set_remote_mode[72]
[    3.475852] remote: remote config major:236
[    3.480128] remote: physical address:0x5b8de000
[    3.484733] aml dvb init
[    3.487244] aml-thermal : Frequency table not initialized. Deferring probe...
[    3.494126] platform : Driver aml-thermal requests probe deferral
[    3.500326] 6--------------------------------------------------------
[    3.506627] 6odroid_sysfs_init(289) : Sleep Enable !!
[    3.511721] 6--------------------------------------------------------
[    3.518318] input: vt-input as /devices/virtual/input/input1
[    3.523850] 6Virtual-Key input driver registered!!
[    3.529029] adbattery: android dummy battery driver loaded
[    3.534245] usbcore: registered new interface driver snd-usb-audio
[    3.540457] pcm5102_platform_probe
[    3.543613] enter aml_soc_platform_pcm2bt_probe
[    3.548253] divider=16,frac=33920000,SDMval=4523
[    3.552697] enter aml_pcm_dai_probe
[    3.556079] [aml-spdif-dai]enter aml_dai_spdif_init
[    3.557190] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    3.567503] aml_spdif_probe
[    3.570286] enter spdif_dit_probe
[    3.573960] odroid_hdmi_snd odroid_hdmi.37: dit-hifi <-> I2S.28 mapping ok
[    3.581143] odroid_dac_snd odroid_dac.38: pcm5102 <-> I2S.28 mapping ok
[    3.587336] GACT probability on
[    3.589955] Mirror/redirect action on
[    3.593569] u32 classifier
[    3.596242]     Performance counters on
[    3.600094]     input device check on
[    3.603660]     Actions configured
[    3.607123] TCP: cubic registered
[    3.610698] NET: Registered protocol family 10
[    3.615290] mip6: Mobile IPv6
[    3.617678] sit: IPv6 over IPv4 tunneling driver
[    3.622818] NET: Registered protocol family 17
[    3.626618] NET: Registered protocol family 15
[    3.631060] Bridge firewalling registered
[    3.635049] Bluetooth: RFCOMM TTY layer initialized
[    3.639877] Bluetooth: RFCOMM socket layer initialized
[    3.644929] Bluetooth: RFCOMM ver 1.11
[    3.648652] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    3.653871] Bluetooth: BNEP filters: protocol multicast
[    3.659090] Bluetooth: BNEP socket layer initialized
[    3.663951] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    3.669826] Bluetooth: HIDP socket layer initialized
[    3.674746] NET: Registered protocol family 35
[    3.679342] Key type dns_resolver registered
[    3.683812] Registering SWP/SWPB emulation handler
[    3.688435] AppArmor: AppArmor sha1 policy hashing enabled
[    3.693569] regulator-dummy: disabling
[    3.697543] aml-thermal : Frequency table not initialized. Deferring probe...
[    3.704345] platform : Driver aml-thermal requests probe deferral
[    3.704428] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[    3.716674] scsi0 : usb-storage 1-1.1:1.0
[    3.720709] Number of LUNs=8
[    3.720844] aml-thermal : Frequency table not initialized. Deferring probe...
[    3.720851] platform : Driver aml-thermal requests probe deferral
[    3.736501] Mass Storage Function, version: 2009/09/11
[    3.741581] LUN: removable file: (no medium)
[    3.745914] android_usb gadget: android_usb ready
[    3.750475] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    3.757513] enter  cpufreq
[    3.759803] probe  cpufreq okay
[    3.764857] aml-thermal : min state:1000000 400 1 2
[    3.767446] aml-thermal : not found gpucore node
[    3.767512] hdmitx: cec: CEC probe, fun_config:0
[    3.767725] input: cec_input as /devices/virtual/input/input2
[    3.767875] hdmitx: cec: pinmux:ffffffc05bfcb880, name:hdmitx_aocec
[    3.767877] hdmitx: cec: value:78019801
[    3.767878] hdmitx: cec: value2:0
[    3.767901] hdmitx: cec: irq:231, name:hdmitx_cec, ret:0
[    3.767903] hdmitx: cec: no memory resource
[    3.767906] hdmitx: system: not find cec config
[    3.767907] hdmitx: system: not find ao cec
[    3.768008] hdmitx: cec: hdmitx_device->cec_init_ready:0x1
[    3.768008] 6enter meson_pm_probe!
[    3.768050] meson_pm_probe done
[    3.768150] ALSA device list:
[    3.768151]   #0: ODROID-HDMI
[    3.768153]   #1: ODROID-DAC
[    3.834220] aml-thermal : gpu coef:437, pp:3
[    3.834543] Freeing unused kernel memory: 880K (ffffffc001b21000 - ffffffc001bfd000)
[    3.851279] aml-thermal : cdev1 set upper to 4
[    3.853724] aml-thermal : cdev0 set upper to 3
[    3.874569] systemd-udevd[110]: starting version 215
[    3.877917] random: systemd-udevd urandom read with 113 bits of entropy available
[    3.957956] random: nonblocking pool is initialized
[    4.125047] vout_serve: vmode set to 1080p60hz
[    4.125047] 
[    4.130095] vout_serve: disable HDMI PHY as soon as possible
[    4.135677] tv_vout: tv_set_current_vmode[672]fps_target_mode=12
[    4.141634] tv_vout: mode is 12,sync_duration_den=1,sync_duration_num=60
[    4.148302] switch_vpu_mem_pd: vencp ON
[    4.152063] tv_vout: TV mode 1080p60hz selected.
[    4.156636] tv_vout: new mode =1080p60hz set ok
[    4.161125] vout_serve: vinfo mode is: 1080p60hz
[    4.165689] vout_serve: new mode 1080p60hz set ok
[    4.170390] hdmitx: video: get current mode: 1080p60hz
[    4.175443] hdmitx: hpd: HPD deassert!
[    4.179153] fb: current vmode=1080p60hz
[    4.190442] vout_serve: vmode set to 1080p60hz
[    4.190442] 
[    4.195304] vout_serve: don't set the same mode as current.
[    4.200912] fb: osd0 free scale DISABLE
[    4.224930] fb: osd[0] enable: 1 (c2_init.sh)
[    4.717453] scsi 0:0:0:0: Direct-Access     SanDisk  Extreme          0001 PQ: 0 ANSI: 6
[    4.724439] sd 0:0:0:0: [sda] 61282631 512-byte logical blocks: (31.3 GB/29.2 GiB)
[    4.730794] sd 0:0:0:0: [sda] Write Protect is off
[    4.735542] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.755065]  sda: sda1 sda2 sda3 sda4
[    4.762564] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    5.084815] switch_vpu_mem_pd: viu_vd1 OFF
[    5.087696] switch_vpu_mem_pd: afbc_dec OFF
[    5.090495] switch_vpu_mem_pd: di_post OFF
[    5.094325] switch_vpu_mem_pd: viu_vd2 OFF
[    9.372801] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
[    9.595885] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
[    9.606547] systemd[1]: Detected architecture 'arm64'.
[    9.650224] systemd[1]: Inserted module 'autofs4'
[    9.654168] systemd[1]: Set hostname to <black-pearl>.
[    9.687691] ttyS0 use xtal 24000000 change 115200 to 115200
[    9.860817] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[    9.876925] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[    9.883682] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    9.891066] systemd[1]: Expecting device dev-ttyS0.device...
[    9.900093] systemd[1]: Starting Remote File Systems (Pre).
[    9.906696] systemd[1]: Reached target Remote File Systems (Pre).
[    9.910453] systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.
[    9.918434] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[    9.926186] systemd[1]: Starting Paths.
[    9.933396] systemd[1]: Reached target Paths.
[    9.936673] systemd[1]: Starting Encrypted Volumes.
[    9.943558] systemd[1]: Reached target Encrypted Volumes.
[    9.946898] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
[    9.958913] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    9.966041] systemd[1]: Starting Swap.
[    9.973112] systemd[1]: Reached target Swap.
[    9.976397] systemd[1]: Starting Root Slice.
[    9.983084] systemd[1]: Created slice Root Slice.
[    9.986416] systemd[1]: Starting User and Session Slice.
[    9.994438] systemd[1]: Created slice User and Session Slice.
[    9.997868] systemd[1]: Starting Delayed Shutdown Socket.
[   10.006713] systemd[1]: Listening on Delayed Shutdown Socket.
[   10.010083] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
[   10.020001] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[   10.024549] systemd[1]: Starting Journal Socket (/dev/log).
[   10.033511] systemd[1]: Listening on Journal Socket (/dev/log).
[   10.037104] systemd[1]: Starting udev Control Socket.
[   10.045374] systemd[1]: Listening on udev Control Socket.
[   10.048475] systemd[1]: Starting udev Kernel Socket.
[   10.056205] systemd[1]: Listening on udev Kernel Socket.
[   10.059248] systemd[1]: Starting Journal Socket.
[   10.066520] systemd[1]: Listening on Journal Socket.
[   10.069536] systemd[1]: Starting System Slice.
[   10.076412] systemd[1]: Created slice System Slice.
[   10.079327] systemd[1]: Starting system-getty.slice.
[   10.086624] systemd[1]: Created slice system-getty.slice.
[   10.089532] systemd[1]: Starting system-serial\x2dgetty.slice.
[   10.098270] systemd[1]: Created slice system-serial\x2dgetty.slice.
[   10.101855] systemd[1]: Starting Increase datagram queue length...
[   10.112171] systemd[1]: Starting udev Coldplug all Devices...
[   10.121593] systemd[1]: Started Set Up Additional Binary Formats.
[   10.124967] systemd[1]: Mounting Huge Pages File System...
[   10.134827] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[   10.146090] systemd[1]: Mounting POSIX Message Queue File System...
[   10.165155] systemd[1]: Starting Load Kernel Modules...
[   10.173162] systemd[1]: Mounting Debug File System...
[   10.180914] systemd[1]: Starting Slices.
[   10.189087] systemd[1]: Reached target Slices.
[   10.192184] systemd[1]: Starting Remount Root and Kernel File Systems...
[   10.206289] systemd[1]: Mounted Debug File System.
[   10.212630] systemd[1]: Mounted POSIX Message Queue File System.
[   10.219136] systemd[1]: Mounted Huge Pages File System.
[   10.225932] systemd[1]: Started Increase datagram queue length.
[   10.235033] systemd[1]: Started Create list of required static device nodes for the current kernel.
[   10.246266] systemd[1]: Started Load Kernel Modules.
[   10.254077] systemd[1]: Started Remount Root and Kernel File Systems.
[   10.289409] systemd[1]: Started udev Coldplug all Devices.
[   10.302880] systemd[1]: Starting Various fixups to make systemd work better on Debian...
[   10.313732] systemd[1]: Starting Load/Save Random Seed...
[   10.322500] systemd[1]: Mounting Configuration File System...
[   10.330976] systemd[1]: Starting Apply Kernel Variables...
[   10.339658] systemd[1]: Mounted FUSE Control File System.
[   10.343336] systemd[1]: Starting Create Static Device Nodes in /dev...
[   10.354203] systemd[1]: Starting Syslog Socket.
[   10.361089] systemd[1]: Listening on Syslog Socket.
[   10.364417] systemd[1]: Starting Journal Service...
[   10.376627] systemd[1]: Started Journal Service.
[   10.447077] systemd-udevd[209]: starting version 215
[   10.512676] systemd-journald[207]: Received request to flush runtime journal from PID 1
[   10.992172] ionvideo open
[   11.128278] ERROR stmmaceth, debugfs create directory failed
[   11.130657] stmmac_hw_setup: failed debugFS registration
[   11.186868] ionvideo_stop_generating!!!!
[   11.189184] ionvideo release
[   15.117117] libphy: stmmac-0:00 - Link is Up - 1000/Full
[   17.791811]  sda: sda1 sda2 sda3 sda4
[   18.028788] EXT4-fs (mmcblk0p1): resizing filesystem from 204416 to 3789440 blocks
[   19.691730] EXT4-fs (mmcblk0p1): resized filesystem to 3789440
[   20.177560] ttyS0 use xtal 24000000 change 115200 to 115200
[   20.177792] ttyS0 use xtal 24000000 change 115200 to 115200
[   27.036674] ttyS0 use xtal 24000000 change 115200 to 115200
[   27.037919] Reconfiguring openssh-server
[   27.040792] Collecting entropy ...
[   27.057246] ttyS0 use xtal 24000000 change 115200 to 115200
[   27.071397] Generating new SSH host keys ...

HypriotOS (Debian GNU/Linux 8) black-pearl ttyS0

black-pearl login:
DieterReuter commented 8 years ago

So, you did this steps manually in U-Boot CLI to boot from EXT4, right?

Hmm, we have to figure out how to load "boot.init" from EXT4 and if this isn't possible we have to create a FAT partition to place the "boot.ini" file.

But now you should be able to login with user=pirate, password=hypriot. Could you test this, please?

umiddelb commented 8 years ago

So, you did this steps manually in U-Boot CLI to boot from EXT4, right?

yes

Hmm, we have to figure out how to load "boot.init" from EXT4

to do this, you need to patch the u-boot sources and recompile u-boot by yourself

I was able to login after I've deleted the password for pirate in /etc/shadow, I'll flash it again but this time with a vfat partition at the start.

StefanScherer commented 8 years ago

I would love to see a vfat partition for device-init in combination with our flash tool to set hostname etc. :smiley_cat:

StefanScherer commented 8 years ago

@umiddelb If you have any changes to make progress on it you may push that to master branch and then create a new tag described in the README Deployment section. So you can build a new SD image in the cloud.

umiddelb commented 8 years ago

But now you should be able to login with user=pirate, password=hypriot. Could you test this, please?

Login with user=pirate, password=hypriot works, but you may consider not to set TERM=xterm-256color on the serial console.

umiddelb commented 8 years ago

I'm not very familiar with you build process. I suggest to introduce a vfat partition holding the boot.ini but to keep kernel image, etc. on the ext4 partition.

But in this case the stock boot.ini needs to be slightly modified.

setenv m "1080p60hz"
setenv m_bpp "32"
setenv condev "console=ttyS0,115200n8 console=tty0"   # on both
setenv bootargs "root=/dev/mmcblk0p2 rootwait rw ${condev} no_console_suspend hdmimode=${m} m_bpp=${m_bpp} vout=${vout} fsck.repair=yes"
setenv loadaddr "0x11000000"
setenv dtb_loadaddr "0x1000000"
setenv initrd_loadaddr "0x13000000"
ext4load mmc 0:2 ${initrd_loadaddr} /boot/uInitrd
ext4load mmc 0:2 ${loadaddr} /boot/Image
ext4load mmc 0:2 ${dtb_loadaddr} /boot/meson64_odroidc2.dtb
booti ${loadaddr} ${initrd_loadaddr} ${dtb_loadaddr}