szemzoa / awboot

small linux bootloader for Allwinner T113-S3 and V851s
72 stars 33 forks source link

log to booting linux and no other output #30

Closed YuzukiTsuru closed 9 months ago

YuzukiTsuru commented 9 months ago

MMC:

[I] AWBoot r6172 starting...
[D] DRAM BOOT DRIVE INFO: V0.24
[D] DRAM CLK = 936 MHz
[D] DRAM Type = 3 (2:DDR2,3:DDR3)
[D] DRAMC read ODT off
[D] ZQ value = 0x31
[D] DDR efuse: 0xa
[D] chip id efuse: 0x6800
[D] single rank and full DQ
[D] DDR efuse: 0xa
[D] chip id efuse: 0x6800
[D] rank 0 row = 14
[D] para->dram_para1 = 0x10e2
[D] rank 0 bank = 8
[D] para->dram_para1 = 0x10e2
[D] rank 0 page size = 2 KB
[D] para->dram_para1 = 0x10e2
[D] DRAM ODT value: 0x42
[D] DDR efuse: 0xa
[D] chip id efuse: 0x6800
[D] DRAM: size = 256MB
[D] DRAM: simple test OK
[I] SMHC: sdhci0 controller v50310 initialized
[D] SMHC: capacity 15.9GB
[I] SHMC: SD card detected
[D] SDMMC: speedtest 512KB in 29ms at 18078KB/S
[D] FATFS: mount OK
[I] FATFS: read sun8i-t113s-mangopi-mq-r-t113.dtb addr=44000000
[D] FATFS: read in 3ms at 7.95MB/S
[I] FATFS: read zImage addr=44800000
[D] FATFS: read in 391ms at 12.47MB/S
[D] FATFS: unmount OK
[D] FATFS: done in 418ms
[I] booting linux...

SPI NAND

[I] AWBoot r6174 starting...
[D] DRAM BOOT DRIVE INFO: V0.24
[D] DRAM CLK = 936 MHz
[D] DRAM Type = 3 (2:DDR2,3:DDR3)
[D] DRAMC read ODT off
[D] ZQ value = 0x31
[D] DDR efuse: 0xa
[D] chip id efuse: 0x6800
[D] single rank and full DQ
[D] DDR efuse: 0xa
[D] chip id efuse: 0x6800
[D] rank 0 row = 14
[D] para->dram_para1 = 0x10e2
[D] rank 0 bank = 8
[D] para->dram_para1 = 0x10e2
[D] rank 0 page size = 2 KB
[D] para->dram_para1 = 0x10e2
[D] DRAM ODT value: 0x42
[D] DDR efuse: 0xa
[D] chip id efuse: 0x6800
[D] DRAM: size = 256MB
[D] DRAM: simple test OK
[I] SMHC: sdhci0 controller v50310 initialized
[W] SMHC: error 0x100 status 0x0
[W] SMHC: cmd timeout
[W] SMHC: error 0x100 status 0x0
[W] SMHC: cmd timeout
[D] SMHC: SD/MMC detect failed
[W] SMHC: init failed, trying SPI
[D] DMA: init
[D] DMA: test OK in 20ms
[D] SPI: init
[D] SPI: set clock asked=100MHz actual=100MHz mclk=200MHz
[I] SPI-NAND: W25N01GV detected
[D] SPI-NAND: dt blob: Copy from 0x00040000 to 0x44000000 size:0x00005efb
[I] SPI-NAND: read dt blob of size 24315 at 43.00MB/S
[D] SPI-NAND: Image: Copy from 0x00080000 to 0x44800000 size:0x004c3450
[I] SPI-NAND: read Image of size 4994128 at 49.00MB/S
[I] booting linux...
YuzukiTsuru commented 9 months ago

I'm using UART3 PB6, PB7, But test on UART5 same not working

    aliases {
        ethernet0 = &rtl8189fs;
        mmc0 = &mmc0;
        serial3 = &uart3;
    };

    chosen {
        stdout-path = "serial3:115200n8";
        bootargs = "mem=128M cma=64M root=/dev/mmcblk0p2 rw init=/sbin/init rootwait console=ttyS3,115200 earlyprintk=sunxi-uart,0x02500c00";
    };

&pio {
    uart3_pb6_pins: uart3-pb6-pins {
        pins = "PB6", "PB7";
        function = "uart3";
    };
};

&uart3 {
    pinctrl-0 = <&uart3_pb6_pins>;
    pinctrl-names = "default";
    status = "okay";
};
YuzukiTsuru commented 9 months ago

Just copy my bsp kernel, and it boot to linux,but as you can see the Kernel command line: earlyprintk=sunxi-uart,0x2500000 loglevel=8 initcall_debug=0 console=ttyS0 init=/init is wrong for my uart3

[I] AWBoot r6181 starting...
[D] DRAM BOOT DRIVE INFO: V0.24
[D] DRAM CLK = 936 MHz
[D] DRAM Type = 3 (2:DDR2,3:DDR3)
[D] DRAMC read ODT off
[D] ZQ value = 0x31
[D] DDR efuse: 0xa
[D] chip id efuse: 0x6800
[D] single rank and full DQ
[D] DDR efuse: 0xa
[D] chip id efuse: 0x6800
[D] rank 0 row = 14
[D] para->dram_para1 = 0x10e2
[D] rank 0 bank = 8
[D] para->dram_para1 = 0x10e2
[D] rank 0 page size = 2 KB
[D] para->dram_para1 = 0x10e2
[D] DRAM ODT value: 0x42
[D] DDR efuse: 0xa
[D] chip id efuse: 0x6800
[D] DRAM: size = 256MB
[D] DRAM: simple test OK
[I] SMHC: sdhci0 controller v50310 initialized
[W] SMHC: error 0x100 status 0x0
[W] SMHC: cmd timeout
[W] SMHC: error 0x100 status 0x0
[W] SMHC: cmd timeout
[D] SMHC: SD/MMC detect failed
[W] SMHC: init failed, trying SPI
[D] DMA: init
[D] DMA: test OK in 20ms
[D] SPI: init
[D] SPI: set clock asked=100MHz actual=100MHz mclk=200MHz
[I] SPI-NAND: W25N01GV detected
[D] SPI-NAND: dt blob: Copy from 0x00040000 to 0x44000000 size:0x0000d267
[I] SPI-NAND: read dt blob of size 53863 at 46.00MB/S
[D] SPI-NAND: Image: Copy from 0x00080000 to 0x44800000 size:0x003afce0
[I] SPI-NAND: read Image of size 3865824 at 49.00MB/S
[I] booting linux...
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.61 (yuzuki@YuzukiKoddo) (arm-openwrt-linux-muslgnueabi-gcc.bin (OpenWrt/Linaro GCC 6.4-2017.11 2017-11) 6.4.1, GNU ld (GNU Binutils) 2.27) #22 SMP PREEMPT Fri Jul 14 18:12:40 UTC 2023
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: sun8iw20
[    0.000000] printk: bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 16 MiB at 0x5f000000
[    0.000000] On node 0 totalpages: 131072
[    0.000000]   Normal zone: 1024 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 131072 pages, LIFO batch:31
[    0.000000] percpu: Embedded 15 pages/cpu s30348 r8192 d22900 u61440
[    0.000000] pcpu-alloc: s30348 r8192 d22900 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: earlyprintk=sunxi-uart,0x2500000 loglevel=8 initcall_debug=0 console=ttyS0 init=/init
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 491360K/524288K available (6144K kernel code, 265K rwdata, 1508K rodata, 1024K init, 1164K bss, 16544K reserved, 16384K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x264/0x3e8 with crng_init=0
[    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
YuzukiTsuru commented 9 months ago

just using the bsp kernel and mainline dtb, set mainline dtb

    aliases {
        ethernet0 = &rtl8189fs;
        mmc0 = &mmc0;
        serial0 = &uart0;
    };

    chosen {
        stdout-path = "serial0:115200n8";
        bootargs = "mem=128M cma=64M root=/dev/mmcblk0p2 rw init=/sbin/init rootwait console=ttyS0,115200 earlyprintk=sunxi-uart,0x02500000";
    };

it also boot up

[I] AWBoot r6181 starting...
[D] DRAM BOOT DRIVE INFO: V0.24
[D] DRAM CLK = 936 MHz
[D] DRAM Type = 3 (2:DDR2,3:DDR3)
[D] DRAMC read ODT off
[D] ZQ value = 0x31
[D] DDR efuse: 0xa
[D] chip id efuse: 0x6800
[D] single rank and full DQ
[D] DDR efuse: 0xa
[D] chip id efuse: 0x6800
[D] rank 0 row = 14
[D] para->dram_para1 = 0x10e2
[D] rank 0 bank = 8
[D] para->dram_para1 = 0x10e2
[D] rank 0 page size = 2 KB
[D] para->dram_para1 = 0x10e2
[D] DRAM ODT value: 0x42
[D] DDR efuse: 0xa
[D] chip id efuse: 0x6800
[D] DRAM: size = 256MB
[D] DRAM: simple test OK
[I] SMHC: sdhci0 controller v50310 initialized
[W] SMHC: error 0x100 status 0x0
[W] SMHC: cmd timeout
[W] SMHC: error 0x100 status 0x0
[W] SMHC: cmd timeout
[D] SMHC: SD/MMC detect failed
[W] SMHC: init failed, trying SPI
[D] DMA: init
[D] DMA: test OK in 20ms
[D] SPI: init
[D] SPI: set clock asked=100MHz actual=100MHz mclk=200MHz
[I] SPI-NAND: W25N01GV detected
[D] SPI-NAND: dt blob: Copy from 0x00040000 to 0x44000000 size:0x00005f6b
[I] SPI-NAND: read dt blob of size 24427 at 43.00MB/S
[D] SPI-NAND: Image: Copy from 0x00080000 to 0x44800000 size:0x003afce0
[I] SPI-NAND: read Image of size 3865824 at 49.00MB/S
[I] booting linux...
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.61 (yuzuki@YuzukiKoddo) (arm-openwrt-linux-muslgnueabi-gcc.bin (OpenWrt/Linaro GCC 6.4-2017.11 2017-11) 6.4.1, GNU ld (GNU Binutils) 2.27) #22 SMP PREEMPT Fri Jul 14 18:12:40 UTC 2023
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: MangoPi MQ-Dual
[    0.000000] printk: bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Failed to reserve 64 MiB
[    0.000000] percpu: Embedded 15 pages/cpu s30348 r8192 d22900 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32256
[    0.000000] Kernel command line: mem=128M cma=64M root=/dev/mmcblk0p2 rw init=/sbin/init rootwait console=ttyS0,115200 earlyprintk=sunxi-uart,0x02500000
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 118016K/130048K available (6144K kernel code, 265K rwdata, 1508K rodata, 1024K init, 1164K bss, 12032K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x264/0x3e8 with crng_init=0
[    0.000000] arch_timer: 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.008005] Switching to timer-based delay loop, resolution 41ns
[    0.014192] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.024103] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.034455] pid_max: default: 32768 minimum: 301
[    0.039162] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.046484] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.054747] CPU: Testing write buffer coherency: ok
[    0.059941] CPU0: update cpu_capacity 1024
[    0.064042] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.070204] Setting up static identity map for 0x40100000 - 0x40100060
[    0.076818] rcu: Hierarchical SRCU implementation.
[    0.082330] smp: Bringing up secondary CPUs ...
[    0.087431] CPU1: update cpu_capacity 1024
[    0.087437] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.087542] smp: Brought up 1 node, 2 CPUs
[    0.102005] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.108186] CPU: All CPU(s) started in SVC mode.
[    0.113204] devtmpfs: initialized
[    0.121461] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.129496] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.139372] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.146294] pinctrl core: initialized pinctrl subsystem
[    0.152546] NET: Registered protocol family 16
[    0.157468] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.189060] usbvbus: supplied by vcc
[    0.193128] vcc-3v3: supplied by vcc
[    0.196983] avdd2v8: supplied by vcc-3v3
[    0.201170] vdd-cpu: supplied by vcc
[    0.205214] iommu: Default domain type: Translated
[    0.210544] SCSI subsystem initialized
[    0.214490] usbcore: registered new interface driver usbfs
[    0.220272] usbcore: registered new interface driver hub
[    0.225697] usbcore: registered new device driver usb
[    0.231404] Advanced Linux Sound Architecture Driver Initialized.
[    0.238107] Bluetooth: Core ver 2.22
[    0.241725] NET: Registered protocol family 31
[    0.246368] Bluetooth: HCI device and connection manager initialized
[    0.252968] Bluetooth: HCI socket layer initialized
[    0.258055] Bluetooth: L2CAP socket layer initialized
[    0.263357] Bluetooth: SCO socket layer initialized
[    0.268458] pwm module init!
[    0.271863] G2D: rcq version initialized.major:252
[    0.277214] clocksource: Switched to clocksource arch_sys_counter
[    0.284838] NET: Registered protocol family 2
[    0.289721] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.298108] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.306137] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.313528] TCP: Hash tables configured (established 1024 bind 1024)
[    0.319978] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.326836] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.333981] NET: Registered protocol family 1
[    0.339887] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.350161] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.356115] ntfs: driver 2.1.32 [Flags: R/W].
[    0.385539] io scheduler mq-deadline registered
[    0.390225] io scheduler kyber registered
[    0.394813] [DISP]disp_module_init
[    0.398679] [DISP]disp_module_init finish
[    0.403230] sunxi_sid_init()783 - insmod ok
[    0.408336] misc dump reg init
[    0.412115] dma-buf: Running sanitycheck
[    0.416033] dma-buf: Running dma_fence
[    0.419844] sizeof(dma_fence)=48
[    0.423292] dma-buf: Running dma_fence/sanitycheck
[    0.428305] dma-buf: Running dma_fence/test_signaling
[    0.433591] dma-buf: Running dma_fence/test_add_callback
[    0.438981] dma-buf: Running dma_fence/test_late_add_callback
[    0.444734] dma-buf: Running dma_fence/test_rm_callback
[    0.449967] dma-buf: Running dma_fence/test_late_rm_callback
[    0.455885] dma-buf: Running dma_fence/test_status
[    0.460727] dma-buf: Running dma_fence/test_error
[    0.465457] dma-buf: Running dma_fence/test_wait
[    0.470283] dma-buf: Running dma_fence/test_wait_timeout
[    0.507226] dma-buf: Running dma_fence/test_stub
[    0.512067] dma-buf: Running dma_fence/race_signal_callback
[    0.587246] thread_signal_callback[0] completed 46767 passes, 31 misses
[    0.594031] thread_signal_callback[1] completed 46767 passes, 31 misses
[    0.667235] thread_signal_callback[0] completed 49078 passes, 49077 misses
[    0.674442] thread_signal_callback[1] completed 49092 passes, 49091 misses
[    0.682014] libphy: Fixed MDIO Bus: probed
[    0.686483] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.693092] sunxi-ehci: EHCI SUNXI driver
[    0.697479] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.703678] sunxi-ohci: OHCI SUNXI driver
[    0.708170] i2c /dev entries driver
[    0.711874] sunxi cedar version 1.1
[    0.715632] Bluetooth: HCI UART driver ver 2.3
[    0.720099] Bluetooth: HCI UART protocol H4 registered
[    0.725462] Bluetooth: HCI UART protocol BCSP registered
[    0.731247] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 1.0.10
[    0.738627] exFAT: Version 1.3.0
[    0.743866] NET: Registered protocol family 10
[    0.749165] Segment Routing with IPv6
[    0.753052] NET: Registered protocol family 17
[    0.757660] Bluetooth: RFCOMM TTY layer initialized
[    0.762765] Bluetooth: RFCOMM socket layer initialized
[    0.767953] Bluetooth: RFCOMM ver 1.11
[    0.771942] Registering SWP/SWPB emulation handler
[    0.778883] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    0.787261] ALSA device list:
[    0.787511] cfg80211: failed to load regulatory.db
[    0.790549]   No soundcards found.
[    0.798865] Warning: unable to open an initial console.
[    0.804118] Waiting for root device /dev/mmcblk0p2...
[   31.237233] vcc: disabling
[   31.239939] usbvbus: disabling
[   31.243135] vcc-3v3: disabling
[   31.246322] avdd2v8: disabling
[   31.249515] vdd-cpu: disabling
YuzukiTsuru commented 9 months ago

Mainline + Mainline dts, not working

[I] AWBoot r6181 starting...
[D] DRAM BOOT DRIVE INFO: V0.24
[D] DRAM CLK = 936 MHz
[D] DRAM Type = 3 (2:DDR2,3:DDR3)
[D] DRAMC read ODT off
[D] ZQ value = 0x31
[D] DDR efuse: 0xa
[D] chip id efuse: 0x6800
[D] single rank and full DQ
[D] DDR efuse: 0xa
[D] chip id efuse: 0x6800
[D] rank 0 row = 14
[D] para->dram_para1 = 0x10e2
[D] rank 0 bank = 8
[D] para->dram_para1 = 0x10e2
[D] rank 0 page size = 2 KB
[D] para->dram_para1 = 0x10e2
[D] DRAM ODT value: 0x42
[D] DDR efuse: 0xa
[D] chip id efuse: 0x6800
[D] DRAM: size = 256MB
[D] DRAM: simple test OK
[I] SMHC: sdhci0 controller v50310 initialized
[W] SMHC: error 0x100 status 0x0
[W] SMHC: cmd timeout
[W] SMHC: error 0x100 status 0x0
[W] SMHC: cmd timeout
[D] SMHC: SD/MMC detect failed
[W] SMHC: init failed, trying SPI
[D] DMA: init
[D] DMA: test OK in 20ms
[D] SPI: init
[D] SPI: set clock asked=100MHz actual=100MHz mclk=200MHz
[I] SPI-NAND: W25N01GV detected
[D] SPI-NAND: dt blob: Copy from 0x00040000 to 0x44000000 size:0x00005f6b
[I] SPI-NAND: read dt blob of size 24427 at 43.00MB/S
[D] SPI-NAND: Image: Copy from 0x00080000 to 0x44800000 size:0x004c3450
[I] SPI-NAND: read Image of size 4994128 at 49.00MB/S
[I] booting linux...
YuzukiTsuru commented 9 months ago

bsp kernel and mainline dtb, set mainline dtb, change to uart3

    aliases {
        ethernet0 = &rtl8189fs;
        mmc0 = &mmc0;
        serial3 = &uart3;
    };

    chosen {
        stdout-path = "serial3:115200n8";
        bootargs = "mem=128M cma=64M root=/dev/mmcblk0p2 rw init=/sbin/init rootwait console=ttyS3,115200 earlyprintk=sunxi-uart,0x02500C00";
    };

it also boot up

[I] AWBoot r6181 starting...
[D] DRAM BOOT DRIVE INFO: V0.24
[D] DRAM CLK = 936 MHz
[D] DRAM Type = 3 (2:DDR2,3:DDR3)
[D] DRAMC read ODT off
[D] ZQ value = 0x31
[D] DDR efuse: 0xa
[D] chip id efuse: 0x6800
[D] single rank and full DQ
[D] DDR efuse: 0xa
[D] chip id efuse: 0x6800
[D] rank 0 row = 14
[D] para->dram_para1 = 0x10e2
[D] rank 0 bank = 8
[D] para->dram_para1 = 0x10e2
[D] rank 0 page size = 2 KB
[D] para->dram_para1 = 0x10e2
[D] DRAM ODT value: 0x42
[D] DDR efuse: 0xa
[D] chip id efuse: 0x6800
[D] DRAM: size = 256MB
[D] DRAM: simple test OK
[I] SMHC: sdhci0 controller v50310 initialized
[W] SMHC: error 0x100 status 0x0
[W] SMHC: cmd timeout
[W] SMHC: error 0x100 status 0x0
[W] SMHC: cmd timeout
[D] SMHC: SD/MMC detect failed
[W] SMHC: init failed, trying SPI
[D] DMA: init
[D] DMA: test OK in 20ms
[D] SPI: init
[D] SPI: set clock asked=100MHz actual=100MHz mclk=200MHz
[I] SPI-NAND: W25N01GV detected
[D] SPI-NAND: dt blob: Copy from 0x00040000 to 0x44000000 size:0x00005f6b
[I] SPI-NAND: read dt blob of size 24427 at 43.00MB/S
[D] SPI-NAND: Image: Copy from 0x00080000 to 0x44800000 size:0x003afce0
[I] SPI-NAND: read Image of size 3865824 at 49.00MB/S
[I] booting linux...
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.4.61 (yuzuki@YuzukiKoddo) (arm-openwrt-linux-muslgnueabi-gcc.bin (OpenWrt/Linaro GCC 6.4-2017.11 2017-11) 6.4.1, GNU ld (GNU Binutils) 2.27) #22 SMP PREEMPT Fri Jul 14 18:12:40 UTC 2023
[    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: MangoPi MQ-Dual
[    0.000000] printk: bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Failed to reserve 64 MiB
[    0.000000] percpu: Embedded 15 pages/cpu s30348 r8192 d22900 u61440
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32256
[    0.000000] Kernel command line: mem=128M cma=64M root=/dev/mmcblk0p2 rw init=/sbin/init rootwait console=ttyS3,115200 earlyprintk=sunxi-uart,0x02500C00
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 118016K/130048K available (6144K kernel code, 265K rwdata, 1508K rodata, 1024K init, 1164K bss, 12032K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x264/0x3e8 with crng_init=0
[    0.000000] arch_timer: 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.007996] Switching to timer-based delay loop, resolution 41ns
[    0.014451] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.024344] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.034695] pid_max: default: 32768 minimum: 301
[    0.039625] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.047294] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.055905] CPU: Testing write buffer coherency: ok
[    0.061080] CPU0: update cpu_capacity 1024
[    0.065371] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.071477] Setting up static identity map for 0x40100000 - 0x40100060
[    0.078391] rcu: Hierarchical SRCU implementation.
[    0.083685] smp: Bringing up secondary CPUs ...
[    0.088977] CPU1: update cpu_capacity 1024
[    0.088983] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.089090] smp: Brought up 1 node, 2 CPUs
[    0.103334] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.109523] CPU: All CPU(s) started in SVC mode.
[    0.114527] devtmpfs: initialized
[    0.122734] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[    0.130791] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.141124] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.148028] pinctrl core: initialized pinctrl subsystem
[    0.154272] NET: Registered protocol family 16
[    0.159204] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.191161] usbvbus: supplied by vcc
[    0.195170] vcc-3v3: supplied by vcc
[    0.199188] avdd2v8: supplied by vcc-3v3
[    0.203575] vdd-cpu: supplied by vcc
[    0.207421] iommu: Default domain type: Translated
[    0.212746] SCSI subsystem initialized
[    0.216730] usbcore: registered new interface driver usbfs
[    0.222509] usbcore: registered new interface driver hub
[    0.227920] usbcore: registered new device driver usb
[    0.233839] Advanced Linux Sound Architecture Driver Initialized.
[    0.240851] Bluetooth: Core ver 2.22
[    0.244634] NET: Registered protocol family 31
[    0.249077] Bluetooth: HCI device and connection manager initialized
[    0.255470] Bluetooth: HCI socket layer initialized
[    0.260575] Bluetooth: L2CAP socket layer initialized
[    0.265667] Bluetooth: SCO socket layer initialized
[    0.270986] pwm module init!
[    0.274492] G2D: rcq version initialized.major:252
[    0.279783] clocksource: Switched to clocksource arch_sys_counter
[    0.287455] NET: Registered protocol family 2
[    0.292616] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.301019] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.309048] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    0.316183] TCP: Hash tables configured (established 1024 bind 1024)
[    0.322786] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.329645] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    0.337120] NET: Registered protocol family 1
[    0.343179] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.353452] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.359676] ntfs: driver 2.1.32 [Flags: R/W].
[    0.389256] io scheduler mq-deadline registered
[    0.393833] io scheduler kyber registered
[    0.398401] [DISP]disp_module_init
[    0.402380] [DISP]disp_module_init finish
[    0.406747] sunxi_sid_init()783 - insmod ok
[    0.411680] misc dump reg init
[    0.415466] dma-buf: Running sanitycheck
[    0.419400] dma-buf: Running dma_fence
[    0.423174] sizeof(dma_fence)=48
[    0.426624] dma-buf: Running dma_fence/sanitycheck
[    0.431439] dma-buf: Running dma_fence/test_signaling
[    0.436501] dma-buf: Running dma_fence/test_add_callback
[    0.442074] dma-buf: Running dma_fence/test_late_add_callback
[    0.448079] dma-buf: Running dma_fence/test_rm_callback
[    0.453312] dma-buf: Running dma_fence/test_late_rm_callback
[    0.458970] dma-buf: Running dma_fence/test_status
[    0.463985] dma-buf: Running dma_fence/test_error
[    0.468689] dma-buf: Running dma_fence/test_wait
[    0.473324] dma-buf: Running dma_fence/test_wait_timeout
[    0.509793] dma-buf: Running dma_fence/test_stub
[    0.514419] dma-buf: Running dma_fence/race_signal_callback
[    0.589790] thread_signal_callback[0] completed 43461 passes, 54 misses
[    0.596750] thread_signal_callback[1] completed 43460 passes, 54 misses
[    0.669795] thread_signal_callback[0] completed 48592 passes, 48591 misses
[    0.676688] thread_signal_callback[1] completed 48605 passes, 48605 misses
[    0.684271] libphy: Fixed MDIO Bus: probed
[    0.688727] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.695650] sunxi-ehci: EHCI SUNXI driver
[    0.699866] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.706055] sunxi-ohci: OHCI SUNXI driver
[    0.710390] i2c /dev entries driver
[    0.714112] sunxi cedar version 1.1
[    0.717715] Bluetooth: HCI UART driver ver 2.3
[    0.722384] Bluetooth: HCI UART protocol H4 registered
[    0.727755] Bluetooth: HCI UART protocol BCSP registered
[    0.733543] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 1.0.10
[    0.740928] exFAT: Version 1.3.0
[    0.746318] NET: Registered protocol family 10
[    0.751833] Segment Routing with IPv6
[    0.755730] NET: Registered protocol family 17
[    0.760543] Bluetooth: RFCOMM TTY layer initialized
[    0.765431] Bluetooth: RFCOMM socket layer initialized
[    0.770859] Bluetooth: RFCOMM ver 1.11
[    0.774845] Registering SWP/SWPB emulation handler
[    0.781758] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[    0.789840] ALSA device list:
[    0.790427] cfg80211: failed to load regulatory.db
[    0.793346]   No soundcards found.
[    0.801664] Warning: unable to open an initial console.
[    0.807157] Waiting for root device /dev/mmcblk0p2...
YuzukiTsuru commented 9 months ago

kernel load addr issue, mainline kernel is too big to fit dram, fixed