warpme / minimyth2

Distro to make disk-less MythTV appliance
https://github.com/warpme/minimyth2/wiki
70 stars 20 forks source link

no build #2

Closed Shaggy013 closed 2 years ago

Shaggy013 commented 3 years ago

libaries missing in the setup

libc-dev:i386

make garchive crashes on several packages like imagemagick ,nvidia , perl packages

and the build crashes on

libtool

ow and add patch for sd/emmc problem rk3399

https://github.com/armbian/build/blob/master/patch/u-boot/u-boot-rockchip64-mainline/general-prioritize-sd.patch

and a question how you make the checksum files ? to add patches ?

i now changed the rockpi to orangepi-4 to make a image for orangepi-4

warpme commented 3 years ago

Shaggy013

hey - great you are looking on mm2. thx!

some q to better understand:

What distro are you using for build?

yes. this is know issue and needs some cleanup as garchive needs to be arch dependent (as some packages are not aval. for some arch) and currently it is not. pls simply skip garchive and go directly to make build. I already updated build instructions to skip this stage.

i tested full build of current master of mm2 on vm with vanilla: ubuntu21, fedora34 and archlinux current. no issues observed with full build from vanilla os. i suspect there is interference with sw. on your host machine. May you try with temporally uninstalled libtool on your host and see is there difference?

i'll test it on my rockpi4 and if all wilbe ok - i'll add this patch. thx for this!

go to package and run "make makesums"

-create "files" dir in package dir -put patch in "files" dir -add "PATCHFILES = 'patch filename' in make file -run "make makesums" in package dir

may you pls list required delta for orangepi-4 over rockpi4? with this info i can add orangepi4 as another board

Shaggy013 commented 3 years ago

Yeah you putting much work in it seeing at the commits .

i came across your project for the search hvec in 5.12 for rk3399 i just like try things. and your way is diffrent as the more french sounding kodi buildroot and mythtv was one of the first vdrtools i used back in the days. so i also suprised that it is still active keep it up .

there is not much diference for orangepi-4 the firmware blob for the wifi/bt is only wich you need for orangepi 4 to get wifi/bt

5000-Boards-add-Orangepi4.txt add-board-orangepi-4-uboot.txt general-prioritize-sd.txt the rest is already there already for the 3328 and 3399 and maybey sound but it works with the rockpi setting to test only thing that is missing is is the dts files for the device tree in uboot and kernel.

the mmc/sd patch is for boards with emmc and want to boot form sd . you could even adapt it to boot from usb to put the usb above them

i try to compile it in a fresh ubunntu install with office and thunderbird removed and just apt updated. did apt get for your needed packages and did install the needed packages for armbian. i normaly run Gentoo.

but i gonna try your information to getting it build .

yeah missed libtool

does your uart work with 8000 speed ? and mac can also easy be solved with a uboot patch .

this are just the files i added and changed +build the boot scr files.

warpme commented 3 years ago

I added OrangePI-4 patches to kernel and create new board for this device.

Here is SD card image for Orange-4 device. https://github.com/warpme/minimyth2/releases/tag/v11.19.1-v32-Pre-2751

All code should be ok for this device except bootloader: currently it has included rksd_loader.img from rk3399 RockPI-4. Maybe this will be enough to start OrangePI-4 board to Linux kernel? Pls try - best with attached serial to see how boot process goes?

If boot will fail - we my try with armbian bootloader DD to SD card?

In long-term I have plan to go with mainline u-boot on rk3399 devices - but atm thing is tricky in ATF: building ATF needs gcc toolchain for CortexM0 (dram init in ATF is for this target).

let me know how it goes!

Shaggy013 commented 3 years ago

great thnx i go check it out

i still stuck at libtool compile it crashes at config

atf or the other loader makes not much diffrence for the orangepi mayby ram speed i thought

did you ever looked at https://github.com/150balbes it is for biggest part just a dts file change to get a lot of boards working with 1 kernel .

but again thnx

warpme commented 3 years ago

just to be sure: libtool in not needed by minimyth2 except functionality to build minimal static gcc compiler.

may you pls try image i build on your hw? I don't have orangepi-4 hw so checking how far it boots is valuable for me.

yes. many times i exchanged with Oleg (150balbes) about various things :-)

btw: i already got mainline uboot for rockpi4 compiled and now testing image for how it goes on hw i have. if all will go ok - we are in home with orangepi-4...

update: qll. got rockpi4 fully working with mainline uboot. good as this means majority rk now are under our control...

Shaggy013 commented 3 years ago

well you missed the mmc patch in uboot so booting with a sd with mmc onboard is difficult

U-Boot 2017.09-armbian (Feb 17 2020 - 10:01:10 +0100)

Model: RockPi-4B DRAM: 3.9 GiB DCDC_REG1@vdd_center: ; enabling DCDC_REG2@vdd_cpu_l: ; enabling DCDC_REG3@vcc_ddr: ; enabling (ret: -38) DCDC_REG4@vcc_1v8: set 1800000 uV; enabling LDO_REG1@vcc1v8_dvp: set 1800000 uV; enabling LDO_REG2@vcc3v0_touch: set 3000000 uV; enabling LDO_REG3@vcc1v8_pmu: set 1800000 uV; enabling LDO_REG4@vcc_sd: set 3300000 uV; enabling LDO_REG5@vcca3v0_codec: set 3000000 uV; enabling LDO_REG6@vcc_1v5: set 1500000 uV; enabling LDO_REG7@vcca1v8_codec: set 1800000 uV; enabling LDO_REG8@vcc_3v0: set 3000000 uV; enabling SWITCH_REG1@vcc3v3_s3: ; enabling (ret: -38) SWITCH_REG2@vcc3v3_s0: ; enabling (ret: -38) vcc1v8-s0@vcc1v8_s0: set 1800000 uV; enabling (ret: -38) dc-12v@dc_12v: set 12000000 uV; enabling (ret: -38) vcc-sys@vcc_sys: set 5000000 uV; enabling (ret: -38) vcc3v3-sys@vcc3v3_sys: set 3300000 uV; enabling (ret: -38) vcc-phy-regulator@vcc_phy: ; enabling (ret: -38) vdd-log@vdd_log: ; enabling (ret: -38) MMC: sdhci@fe330000: 0, dwmmc@fe320000: 1 SF: unrecognized JEDEC id bytes: 49, 00, 00 *** Warning - spi_flash_probe_bus_cs() failed, using default environment

In: serial@ff1a0000 Out: serial@ff1a0000 Err: serial@ff1a0000 Model: RockPi-4B Net: eth0: ethernet@fe300000 Hit any key to stop autoboot: 0 Card did not respond to voltage select! mmc_init: -95, time 20 switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... Found U-Boot script /boot.scr reading /boot.scr 1682 bytes read in 5 ms (328.1 KiB/s)

Executing script at 00500000

reading /Image 30571008 bytes read in 3243 ms (9 MiB/s) reading /rk3399_dtb Unable to read file /rk3399_dtb reading /dtbs/rockchip/rk3399-orangepi-4.dtb 62396 bytes read in 14 ms (4.2 MiB/s) libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND reading /initramfs-linux.img Unable to read file /initramfs-linux.img

Flattened Device Tree blob at 01f00000

Booting using the fdt blob at 0x1f00000 reserving fdt memory region: addr=1f00000 size=10000 Loading Device Tree to 00000000f5ef0000, end 00000000f5f02fff ... OK

Starting kernel ...

https://github.com/150balbes/build/blob/armbian-tv/patch/u-boot/u-boot-rockchip64-mainline/u-boot-rk-rk3399-usb-start.patch this makes it for all rk3399 boards easy

warpme commented 3 years ago

oh well - it is not me :-p image i provide you is with rksd_loader.img blob from 1-year old Armbian. but it looks like we are close: rockpi4 boots nicely with mainline uboot for me. switching orangepi-4 to mainline uboot is now trivial :-)

Shaggy013 commented 3 years ago

well i disabled spi in favor of tft testing

but other then that sd i sure i dont have a rockpi uboot

this is mine on mmc

DDR Version 1.24 20191016

In channel 0 CS = 0 MR0=0x18 MR4=0x1 MR5=0x6 MR8=0x8 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0xFF CS = 1 MR0=0x18 MR4=0x1 MR5=0x6 MR8=0x8 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0xFF channel 1 CS = 0 MR0=0x18 MR4=0x1 MR5=0x6 MR8=0x8 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0xFF CS = 1 MR0=0x18 MR4=0x1 MR5=0x6 MR8=0x8 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0xFF channel 0 training pass! channel 1 training pass! change freq to 416MHz 0,1 Channel 0: LPDDR4,416MHz Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB Channel 1: LPDDR4,416MHz Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB 256B stride channel 0 CS = 0 MR0=0x18 MR4=0x1 MR5=0x6 MR8=0x8 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0xFF CS = 1 MR0=0x18 MR4=0x1 MR5=0x6 MR8=0x8 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0xFF channel 1 CS = 0 MR0=0x18 MR4=0x1 MR5=0x6 MR8=0x8 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0xFF CS = 1 MR0=0x18 MR4=0x1 MR5=0x6 MR8=0x8 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0xFF channel 0 training pass! channel 1 training pass! channel 0, cs 0, advanced training done channel 0, cs 1, advanced training done channel 1, cs 0, advanced training done channel 1, cs 1, advanced training done change freq to 856MHz 1,0 ch 0 ddrconfig = 0x101, ddrsize = 0x2020 ch 1 ddrconfig = 0x101, ddrsize = 0x2020 pmugrf_os_reg[2] = 0x3AA1FAA1, stride = 0xD ddr_set_rate to 328MHZ ddr_set_rate to 666MHZ ddr_set_rate to 928MHZ channel 0, cs 0, advanced training done channel 0, cs 1, advanced training done channel 1, cs 0, advanced training done channel 1, cs 1, advanced training done ddr_set_rate to 416MHZ, ctl_index 0 ddr_set_rate to 856MHZ, ctl_index 1 support 416 856 328 666 928 MHz, current 856MHz OUT Boot1 Release Time: May 29 2020 17:36:36, version: 1.26 CPUId = 0x0 ChipType = 0x10, 346 SdmmcInit=2 0 BootCapSize=100000 UserCapSize=14910MB FwPartOffset=2000 , 100000 mmc0:cmd8,20 mmc0:cmd5,20 mmc0:cmd55,20 mmc0:cmd1,20 mmc0:cmd8,20 mmc0:cmd5,20 mmc0:cmd55,20 mmc0:cmd1,20 mmc0:cmd8,20 mmc0:cmd5,20 mmc0:cmd55,20 mmc0:cmd1,20 SdmmcInit=0 1 StorageInit ok = 68578 SecureMode = 0 SecureInit read PBA: 0x4 SecureInit read PBA: 0x404 SecureInit read PBA: 0x804 SecureInit read PBA: 0xc04 SecureInit read PBA: 0x1004 SecureInit read PBA: 0x1404 SecureInit read PBA: 0x1804 SecureInit read PBA: 0x1c04 SecureInit ret = 0, SecureMode = 0 atags_set_bootdev: ret:(0) GPT 0x3335db8 signature is wrong recovery gpt... GPT 0x3335db8 signature is wrong recovery gpt fail! Trust Addr:0x4000, 0x58334c42 No find bl30.bin No find bl32.bin Load uboot, ReadLba = 2000 Load OK, addr=0x200000, size=0xde3d4 RunBL31 0x40000 @ 94396 us NOTICE: BL31: v1.3(release):845ee93 NOTICE: BL31: Built : 15:51:11, Jul 22 2020 NOTICE: BL31: Rockchip release version: v1.1 INFO: GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3 INFO: Using opteed sec cpu_context! INFO: boot cpu mask: 0 INFO: plat_rockchip_pmu_init(1196): pd status 3e INFO: BL31: Initializing runtime services WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK ERROR: Error initializing runtime service opteed_fast INFO: BL31: Preparing for EL3 exit to normal world INFO: Entry point address = 0x200000 INFO: SPSR = 0x3c9

U-Boot 2020.10-armbian (Apr 27 2021 - 18:34:03 +0200)

Model: OrangePi 4 board DRAM: 3.9 GiB PMIC: RK808 MMC: mmc@fe320000: 1, sdhci@fe330000: 0 Loading Environment from MMC... *** Warning - bad CRC, using default environment

In: serial Out: vidconsole Err: vidconsole Model: OrangePi 4 board Net: eth0: ethernet@fe300000 Hit any key to stop autoboot: 0 starting USB... Bus usb@fe380000: USB EHCI 1.00 Bus usb@fe3c0000: USB EHCI 1.00 Bus dwc3: usb maximum-speed not found Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 Bus dwc3: usb maximum-speed not found Register 2000140 NbrPorts 2 Starting the controller USB XHCI 1.10 scanning bus usb@fe380000 for devices... 1 USB Device(s) found scanning bus usb@fe3c0000 for devices... 1 USB Device(s) found scanning bus dwc3 for devices... 1 USB Device(s) found scanning bus dwc3 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found

Device 0: unknown device Card did not respond to voltage select! switch to partitions #0, OK mmc0(part 0) is current device Scanning mmc 0:1... Found U-Boot script /boot/boot.scr 3185 bytes read in 19 ms (163.1 KiB/s)

Executing script at 00500000

Boot script loaded from mmc 0 365 bytes read in 15 ms (23.4 KiB/s) 16876550 bytes read in 1621 ms (9.9 MiB/s) 28291584 bytes read in 2701 ms (10 MiB/s) 81759 bytes read in 42 ms (1.9 MiB/s) 1266 bytes read in 32 ms (38.1 KiB/s) Applying kernel provided DT overlay rockchip-spi-spidev.dtbo Failed to load '/boot/dtb/rockchip/overlay/rockchip-spi-add-cs1.dtbo' 2698 bytes read in 32 ms (82 KiB/s) Applying kernel provided DT fixup script (rockchip-fixup.scr)

Executing script at 09000000

Moving Image from 0x2080000 to 0x2200000, end=3d90000

Loading init Ramdisk from Legacy Image at 06000000 ...

Image Name: uInitrd Image Type: AArch64 Linux RAMDisk Image (gzip compressed) Data Size: 16876486 Bytes = 16.1 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK

Flattened Device Tree blob at 01f00000

Booting using the fdt blob at 0x1f00000 Loading Ramdisk to f0ef4000, end f1f0c3c6 ... OK Loading Device Tree to 00000000f0e77000, end 00000000f0ef3fff ... OK

Starting kernel ...


ant this is the uboot of sd wiht the mm2 image

DDR Version 1.13 20180801 In Channel 0: LPDDR4,50MHz CS = 0 MR0=0x18 MR4=0x1 MR5=0x6 MR8=0x8 MR12=0x4D MR14=0x4D MR18=0x0 MR19=0x0 MR24=0x8 MR25=0xFF CS = 1 MR0=0x18 MR4=0x1 MR5=0x6 MR8=0x8 MR12=0x4D MR14=0x4D MR18=0x0 MR19=0x0 MR24=0x8 MR25=0xFF Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB Channel 1: LPDDR4,50MHz CS = 0 MR0=0x18 MR4=0x1 MR5=0x6 MR8=0x8 MR12=0x4D MR14=0x4D MR18=0x0 MR19=0x0 MR24=0x8 MR25=0xFF CS = 1 MR0=0x18 MR4=0x1 MR5=0x6 MR8=0x8 MR12=0x4D MR14=0x4D MR18=0x0 MR19=0x0 MR24=0x8 MR25=0xFF Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB 256B stride channel 0 CS = 0 MR0=0x18 MR4=0x1 MR5=0x6 MR8=0x8 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0xFF CS = 1 MR0=0x18 MR4=0x1 MR5=0x6 MR8=0x8 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0xFF channel 1 CS = 0 MR0=0x18 MR4=0x1 MR5=0x6 MR8=0x8 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0xFF CS = 1 MR0=0x18 MR4=0x1 MR5=0x6 MR8=0x8 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0xFF channel 0 training pass! channel 1 training pass! change freq to 400MHz 0,1 channel 0 CS = 0 MR0=0x18 MR4=0x1 MR5=0x6 MR8=0x8 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0xFF CS = 1 MR0=0x18 MR4=0x1 MR5=0x6 MR8=0x8 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0xFF channel 1 CS = 0 MR0=0x18 MR4=0x1 MR5=0x6 MR8=0x8 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0xFF CS = 1 MR0=0x18 MR4=0x1 MR5=0x6 MR8=0x8 MR12=0x72 MR14=0x72 MR18=0x0 MR19=0x0 MR24=0x8 MR25=0xFF channel 0 training pass! channel 1 training pass! change freq to 800MHz 1,0 ch 0 ddrconfig = 0x101, ddrsize = 0x2020 ch 1 ddrconfig = 0x101, ddrsize = 0x2020 pmugrf_os_reg[2] = 0x3AA1FAA1, stride = 0xD OUT U-Boot SPL board init

U-Boot SPL 2017.09-armbian (Feb 17 2020 - 10:01:10) booted from SD Trying to boot from MMC2 NOTICE: BL31: v1.3(debug):65aa5ce NOTICE: BL31: Built : 10:47:37, Jun 19 2018 NOTICE: BL31: Rockchip release version: v1.1 INFO: GICv3 with legacy support detected. ARM GICV3 driver initialized in EL3 INFO: Using opteed sec cpu_context! INFO: boot cpu mask: 0 INFO: plat_rockchip_pmu_init(1151): pd status 3e INFO: BL31: Initializing runtime services WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK ERROR: Error initializing runtime service opteed_fast INFO: BL31: Preparing for EL3 exit to normal world INFO: Entry point address = 0x200000 INFO: SPSR = 0x3c9

U-Boot 2017.09-armbian (Feb 17 2020 - 10:01:10 +0100)

Model: RockPi-4B DRAM: 3.9 GiB DCDC_REG1@vdd_center: ; enabling DCDC_REG2@vdd_cpu_l: ; enabling DCDC_REG3@vcc_ddr: ; enabling (ret: -38) DCDC_REG4@vcc_1v8: set 1800000 uV; enabling LDO_REG1@vcc1v8_dvp: set 1800000 uV; enabling LDO_REG2@vcc3v0_touch: set 3000000 uV; enabling LDO_REG3@vcc1v8_pmu: set 1800000 uV; enabling LDO_REG4@vcc_sd: set 3300000 uV; enabling LDO_REG5@vcca3v0_codec: set 3000000 uV; enabling LDO_REG6@vcc_1v5: set 1500000 uV; enabling LDO_REG7@vcca1v8_codec: set 1800000 uV; enabling LDO_REG8@vcc_3v0: set 3000000 uV; enabling SWITCH_REG1@vcc3v3_s3: ; enabling (ret: -38) SWITCH_REG2@vcc3v3_s0: ; enabling (ret: -38) vcc1v8-s0@vcc1v8_s0: set 1800000 uV; enabling (ret: -38) dc-12v@dc_12v: set 12000000 uV; enabling (ret: -38) vcc-sys@vcc_sys: set 5000000 uV; enabling (ret: -38) vcc3v3-sys@vcc3v3_sys: set 3300000 uV; enabling (ret: -38) vcc-phy-regulator@vcc_phy: ; enabling (ret: -38) vdd-log@vdd_log: ; enabling (ret: -38) MMC: sdhci@fe330000: 0, dwmmc@fe320000: 1 SF: unrecognized JEDEC id bytes: 4a, 00, 00 *** Warning - spi_flash_probe_bus_cs() failed, using default environment

In: serial@ff1a0000 Out: serial@ff1a0000 Err: serial@ff1a0000 Model: RockPi-4B Net: eth0: ethernet@fe300000 Hit any key to stop autoboot: 0 Card did not respond to voltage select! mmc_init: -95, time 20 switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... Found U-Boot script /boot.scr reading /boot.scr 1682 bytes read in 4 ms (410.2 KiB/s)

Executing script at 00500000

reading /Image 30571008 bytes read in 3243 ms (9 MiB/s) reading /rk3399_dtb Unable to read file /rk3399_dtb reading /dtbs/rockchip/rk3399-orangepi-4.dtb 62396 bytes read in 14 ms (4.2 MiB/s) libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND reading /initramfs-linux.img Unable to read file /initramfs-linux.img

Flattened Device Tree blob at 01f00000

Booting using the fdt blob at 0x1f00000 reserving fdt memory region: addr=1f00000 size=10000 Loading Device Tree to 00000000f5ef0000, end 00000000f5f02fff ... OK

will zero it tommorrow to see if it not a offset mixup

and i have a gentoo kernel with a intiram with your patches so also can boot the /

warpme commented 3 years ago

i quickly build orangepi-4 with mainline uboot https://github.com/warpme/minimyth2/releases/tag/v11.19.1-v32-Pre-2751 pls try (it was quick code changes so i may miss something but maybe...)

Shaggy013 commented 3 years ago

https://github.com/Depau/alarm-orangepi4

depau has both for example

ok but then i get some sleep :)

Shaggy013 commented 3 years ago

U-Boot TPL 2021.04-rc4 (May 15 2021 - 00:25:09) Channel 0: LPDDR4, 50MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB Channel 1: LPDDR4, 50MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB 256B stride lpddr4_set_rate: change freq to 400000000 mhz 0, 1 lpddr4_set_rate: change freq to 800000000 mhz 1, 0 Trying to boot from BOOTROM Returning to boot ROM...

U-Boot SPL 2021.04-rc4 (May 15 2021 - 00:25:09 +0200) Trying to boot from MMC1 NOTICE: BL31: v2.4(release):v2.4-2-gb623c807e NOTICE: BL31: Built : 22:21:47, Nov 28 2020

U-Boot 2021.04-rc4 (May 15 2021 - 00:25:09 +0200)

Model: OrangePi 4 AI board DRAM: 3.9 GiB PMIC: RK808 MMC: mmc@fe320000: 1, sdhci@fe330000: 0 Loading Environment from MMC... *** Warning - bad CRC, using default environment

In: serial Out: serial Err: serial Model: OrangePi 4 AI board Net: eth0: ethernet@fe300000 Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... Found U-Boot script /boot.scr 1682 bytes read in 4 ms (410.2 KiB/s)

Executing script at 00500000

30571008 bytes read in 1311 ms (22.2 MiB/s) Failed to load '/rk3399_dtb' 62396 bytes read in 9 ms (6.6 MiB/s) libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND Failed to load '/initramfs-linux.img' Moving Image from 0x2080000 to 0x2200000, end=3fc0000

Flattened Device Tree blob at 01f00000

Booting using the fdt blob at 0x1f00000 Loading Device Tree to 00000000f5f14000, end 00000000f5f26fff ... OK

Starting kernel ...

Shaggy013 commented 3 years ago

yeah no boot

i got somehow your kernel booted if you copy rootfs-ro to just the /

then errors that it is just ro and not can create the rest of the folders

otherwise kernel cannot find the init

i have the assumption your testing through pxe booting ?

Shaggy013 commented 3 years ago

the firmware is missing the dp firmware for rockchip rockchip/dptx.bin

why all that mess of copy to a rootfs and no intramfs or a initrd ? doesnt sbin/init look for a etc/.... file in / an till rootfs or rootfs-ro is not / how does sbin/init see the file ?

warpme commented 3 years ago

Ok - i added missing firmware + update some wifi/bt firmware as well. pls try. for any issues - pls provide log/dmesg

Shaggy013 commented 3 years ago

U-Boot TPL 2021.04-rc4 (May 16 2021 - 14:49:37) Channel 0: LPDDR4, 50MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB Channel 1: LPDDR4, 50MHz BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB 256B stride lpddr4_set_rate: change freq to 400000000 mhz 0, 1 lpddr4_set_rate: change freq to 800000000 mhz 1, 0 Trying to boot from BOOTROM Returning to boot ROM...

U-Boot SPL 2021.04-rc4 (May 16 2021 - 14:49:37 +0200) Trying to boot from MMC1 NOTICE: BL31: v2.4(release):v2.4-2-gb623c807e NOTICE: BL31: Built : 22:21:47, Nov 28 2020

U-Boot 2021.04-rc4 (May 16 2021 - 14:49:37 +0200)

Model: OrangePi 4 AI board DRAM: 3.9 GiB PMIC: RK808 MMC: mmc@fe320000: 1, sdhci@fe330000: 0 Loading Environment from MMC... *** Warning - bad CRC, using default environment

In: serial Out: serial Err: serial Model: OrangePi 4 AI board Net: eth0: ethernet@fe300000 Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... Found U-Boot script /boot.scr 1682 bytes read in 4 ms (410.2 KiB/s)

Executing script at 00500000

30571008 bytes read in 1311 ms (22.2 MiB/s) Failed to load '/rk3399_dtb' 62396 bytes read in 9 ms (6.6 MiB/s) libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND Failed to load '/initramfs-linux.img' Moving Image from 0x2080000 to 0x2200000, end=3fc0000

Flattened Device Tree blob at 01f00000

Booting using the fdt blob at 0x1f00000 Loading Device Tree to 00000000f5f14000, end 00000000f5f26fff ... OK

Starting kernel ...

warpme commented 3 years ago

hmm - so it looks like something in kernel not going well. sd card fat partition has boot-debug.scr script which has added debug in kernel cmd.line. Pls try rename it to debug.scr. This should give kernel boot verbosity - maybe we will see where issue is?

btw: in my rockpi4 adding 'debug' to kernel cmd.line make boot hanging! i don't know why but pls be aware this also may happen on orangepi4. I think this is kind of kernel bug?

Shaggy013 commented 3 years ago

i check it ;) added a echo Boot partuuid is 346d1a6a-01 Root partuuid is 346d1a6a-02

well that goes well from uboot

i adding debug now to kernel

Shaggy013 commented 3 years ago

well the kernel boots but no serial or screen

warpme commented 3 years ago

grrr - so the same like on my rockpi4 so it looks i need first to fix kernel verbosity on rk3399.... as soon i'll fix this - is let you know!

and i understand no Eth as well?

Shaggy013 commented 3 years ago

i know whats wrong

disable dp

Shaggy013 commented 3 years ago

you can do it in dts or just leave the module from kernel

Shaggy013 commented 3 years ago

or disable hdmi and videoconsole in uboot same as on armbian

i have eth but dont know the ip ,got a shitty broadband cable modem

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034] [ 0.000000] Linux version 5.12.3 (piotro@minimyth-armv8) (aarch64-minimyth-linux-gnu-gcc (GCC) 10.3.0, GNU ld (GNU Binutils) 2.36) #2 SMP PREEMPT Fri May 14 10:36:26 CEST 2021 [ 0.000000] Machine model: OrangePi 4 [ 0.000000] efi: UEFI not found. [ 0.000000] Zone ranges: [ 0.000000] DMA [mem 0x0000000000200000-0x00000000f7ffffff] [ 0.000000] DMA32 empty [ 0.000000] Normal empty [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000200000-0x00000000f7ffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000200000-0x00000000f7ffffff] [ 0.000000] On node 0 totalpages: 1015296 [ 0.000000] DMA zone: 15864 pages used for memmap [ 0.000000] DMA zone: 0 pages reserved [ 0.000000] DMA zone: 1015296 pages, LIFO batch:63 [ 0.000000] cma: Reserved 256 MiB at 0x00000000e1c00000 [ 0.000000] psci: probing for conduit method from DT. [ 0.000000] psci: PSCIv1.0 detected in firmware. [ 0.000000] psci: Using standard PSCI v0.2 function IDs [ 0.000000] psci: MIGRATE_INFO_TYPE not supported. [ 0.000000] psci: SMC Calling Convention v1.0 [ 0.000000] percpu: Embedded 32 pages/cpu s94168 r8192 d28712 u131072 [ 0.000000] pcpu-alloc: s94168 r8192 d28712 u131072 alloc=32*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5 [ 0.000000] Detected VIPT I-cache on CPU0 [ 0.000000] CPU features: detected: GIC system register CPU interface [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 999432 [ 0.000000] Kernel command line: root=PARTUUID=346d1a6a-02 rw console=tty1 console=ttyS2,1500000 debug logo.nologo vt.cur_default=1 [ 0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes, linear) [ 0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes, linear) [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] Memory: 3689780K/4061184K available (14272K kernel code, 3294K rwdata, 6180K rodata, 6016K init, 550K bss, 109260K reserved, 262144K cma-reserved) [ 0.000000] random: get_random_u64 called from cache_random_seq_create+0x8c/0x190 with crng_init=0 [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=6, Nodes=1 [ 0.000000] ftrace: allocating 49564 entries in 194 pages [ 0.000000] ftrace: allocated 194 pages with 3 groups [ 0.000000] rcu: Preemptible hierarchical RCU implementation. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=6. [ 0.000000] Trampoline variant of Tasks RCU enabled. [ 0.000000] Rude variant of Tasks RCU enabled. [ 0.000000] Tracing variant of Tasks RCU enabled. [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 30 jiffies. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=6 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode [ 0.000000] GICv3: 256 SPIs implemented [ 0.000000] GICv3: 0 Extended SPIs implemented [ 0.000000] GICv3: Distributor has no Range Selector support [ 0.000000] GICv3: 16 PPIs implemented [ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x00000000fef00000 [ 0.000000] ITS [mem 0xfee20000-0xfee3ffff] [ 0.000000] ITS@0x00000000fee20000: allocated 65536 Devices @800000 (flat, esz 8, psz 64K, shr 0) [ 0.000000] ITS: using cache flushing for cmd queue [ 0.000000] GICv3: using LPI property table @0x00000000003c0000 [ 0.000000] GIC: using cache flushing for LPI property table [ 0.000000] GICv3: CPU0: using allocated LPI pending table @0x00000000003d0000 [ 0.000000] GICv3: GIC: PPI partition interrupt-partition-0[0] { /cpus/cpu@0[0] /cpus/cpu@1[1] /cpus/cpu@2[2] /cpus/cpu@3[3] } [ 0.000000] GICv3: GIC: PPI partition interrupt-partition-1[1] { /cpus/cpu@100[4] /cpus/cpu@101[5] } [ 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.000001] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns [ 0.001600] Console: colour dummy device 80x25 [ 0.002573] printk: console [tty1] enabled [ 0.002640] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=80000) [ 0.002689] pid_max: default: 32768 minimum: 301 [ 0.003076] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes, linear) [ 0.003137] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes, linear) [ 0.006778] rcu: Hierarchical SRCU implementation. [ 0.008317] Platform MSI: interrupt-controller@fee20000 domain created [ 0.008823] PCI/MSI: /interrupt-controller@fee00000/interrupt-controller@fee20000 domain created [ 0.011273] EFI services will not be available. [ 0.012155] smp: Bringing up secondary CPUs ... [ 0.013287] Detected VIPT I-cache on CPU1 [ 0.013349] GICv3: CPU1: found redistributor 1 region 0:0x00000000fef20000 [ 0.013377] GICv3: CPU1: using allocated LPI pending table @0x00000000003e0000 [ 0.013455] CPU1: Booted secondary processor 0x0000000001 [0x410fd034] [ 0.014951] Detected VIPT I-cache on CPU2 [ 0.015012] GICv3: CPU2: found redistributor 2 region 0:0x00000000fef40000 [ 0.015039] GICv3: CPU2: using allocated LPI pending table @0x00000000003f0000 [ 0.015113] CPU2: Booted secondary processor 0x0000000002 [0x410fd034] [ 0.016547] Detected VIPT I-cache on CPU3 [ 0.016609] GICv3: CPU3: found redistributor 3 region 0:0x00000000fef60000 [ 0.016636] GICv3: CPU3: using allocated LPI pending table @0x0000000000880000 [ 0.016712] CPU3: Booted secondary processor 0x0000000003 [0x410fd034] [ 0.018206] CPU features: detected: Spectre-v2 [ 0.018222] CPU features: detected: Spectre-v4 [ 0.018227] CPU features: detected: ARM errata 1165522, 1319367, or 1530923 [ 0.018236] Detected PIPT I-cache on CPU4 [ 0.018269] GICv3: CPU4: found redistributor 100 region 0:0x00000000fef80000 [ 0.018290] GICv3: CPU4: using allocated LPI pending table @0x0000000000890000 [ 0.018340] CPU4: Booted secondary processor 0x0000000100 [0x410fd082] [ 0.019661] Detected PIPT I-cache on CPU5 [ 0.019705] GICv3: CPU5: found redistributor 101 region 0:0x00000000fefa0000 [ 0.019726] GICv3: CPU5: using allocated LPI pending table @0x00000000008a0000 [ 0.019777] CPU5: Booted secondary processor 0x0000000101 [0x410fd082] [ 0.019989] smp: Brought up 1 node, 6 CPUs [ 0.020395] SMP: Total of 6 processors activated. [ 0.020420] CPU features: detected: 32-bit EL0 Support [ 0.020447] CPU features: detected: CRC32 instructions [ 0.020473] CPU features: detected: 32-bit EL1 Support [ 0.042578] CPU: All CPU(s) started at EL2 [ 0.042685] alternatives: patching kernel code [ 0.045500] devtmpfs: initialized [ 0.058655] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370867519511994 ns [ 0.058706] futex hash table entries: 2048 (order: 5, 131072 bytes, linear) [ 0.065522] pinctrl core: initialized pinctrl subsystem [ 0.066274] DMI not present or invalid. [ 0.066648] NET: Registered protocol family 16 [ 0.069701] DMA: preallocated 512 KiB GFP_KERNEL pool for atomic allocations [ 0.070169] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations [ 0.070662] DMA: preallocated 512 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations [ 0.070769] audit: initializing netlink subsys (disabled) [ 0.071012] audit: type=2000 audit(0.066:1): state=initialized audit_enabled=0 res=1 [ 0.072188] thermal_sys: Registered thermal governor 'fair_share' [ 0.072199] thermal_sys: Registered thermal governor 'bang_bang' [ 0.072221] thermal_sys: Registered thermal governor 'step_wise' [ 0.072237] thermal_sys: Registered thermal governor 'user_space' [ 0 0.155101] usbcore: registered new interface driver usbfs [ 0.155161] usbcore: registered new interface driver hub [ 0.155220] usbcore: registered new device driver usb [ 0.155999] pps_core: LinuxPPS API ver. 1 registered [ 0.156020] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it [ 0.156052] PTP clock support registered [ 0.156102] EDAC MC: Ver: 3.0.0 [ 0.157121] Advanced Linux Sound Architecture Driver Initialized. [ 0.158020] clocksource: Switched to clocksource arch_sys_counter [ 0.245986] pnp: PnP ACPI: disabled [ 0.257279] NET: Registered protocol family 2 [ 0.258430] tcp_listen_portaddr_hash hash table entries: 2048 (order: 3, 32768 bytes, linear) [ 0.258600] TCP established hash table entries: 32768 (order: 6, 262144 bytes, linear) [ 0.258968] TCP bind hash table entries: 32768 (order: 7, 524288 bytes, linear) [ 0.259649] TCP: Hash tables configured (established 32768 bind 32768) [ 0.259809] UDP hash table entries: 2048 (order: 4, 65536 bytes, linear) [ 0.259964] UDP-Lite hash table entries: 2048 (order: 4, 65536 bytes, linear) [ 0.260278] NET: Registered protocol family 1 [ 0.261062] RPC: Registered named UNIX socket transport module. [ 0.261089] RPC: Registered udp transport module. [ 0.261105] RPC: Registered tcp transport module. [ 0.261120] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.261138] NET: Registered protocol family 44 [ 0.261166] PCI: CLS 0 bytes, default 64 [ 0.262536] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available [ 0.263020] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available [ 0.263716] kvm [1]: IPA Size Limit: 40 bits

[ 0.265076] kvm [1]: GIC system register CPU interface enabled [ 0.265365] kvm [1]: vgic interrupt IRQ18 [ 0.265712] kvm [1]: Hyp mode initialized successfully [ 1.052669] Initialise system trusted keyrings [ 1.052944] workingset: timestamp_bits=46 max_order=20 bucket_order=0 [ 1.059206] zbud: loaded [ 1.061109] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 1.061839] NFS: Registering the id_resolver key type [ 1.061888] Key type id_resolver registered [ 1.061905] Key type id_legacy registered [ 1.062022] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 1.062043] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering... [ 1.130001] NET: Registered protocol family 38 [ 1.130029] Key type asymmetric registered [ 1.130045] Asymmetric key parser 'x509' registered [ 1.130061] Asymmetric key parser 'pkcs8' registered [ 1.130076] Key type pkcs7_test registered [ 1.130125] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244) [ 1.130333] io scheduler mq-deadline registered [ 1.130354] io scheduler kyber registered [ 1.130495] io scheduler bfq registered [ 1.137508] vcc5v0_sys: supplied by vcc_sys [ 1.137631] vbus_typec: supplied by vcc5v0_sys [ 1.139717] usb_vbus: supplied by vcc5v0_sys [ 1.151441] rockchip-pcie f8000000.pcie: host bridge /pcie@f8000000 ranges: [ 1.151502] rockchip-pcie f8000000.pcie: Parsing ranges property... [ 1.151540] rockchip-pcie f8000000.pcie: MEM 0x00fa000000..0x00fbdfffff -> 0x00fa000000 [ 1.151579] rockchip-pcie f8000000.pcie: IO 0x00fbe00000..0x00fbefffff -> 0x00fbe00000 [ 1.151704] rockchip-pcie f8000000.pcie: missing legacy phy; search for per-lane PHY [ 1.152454] rockchip-pcie f8000000.pcie: no vpcie12v regulator found [ 1.152664] rockchip-pcie f8000000.pcie: supply vpcie1v8 not found, using dummy regulator [ 1.152825] rockchip-pcie f8000000.pcie: supply vpcie0v9 not found, using dummy regulator [ 1.229964] rockchip-pcie f8000000.pcie: current link width is x1 [ 1.229990] rockchip-pc] behind bridge, pass 0 [ 1.235482] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 1.235514] pci 0000:00:00.0: scanning [bus 00-00] behind bridge, pass 1 [ 1.235657] pci_bus 0000:01: scanning bus [ 1.235776] pci 0000:01:00.0: [168c:002a] type 00 class 0x028000 [ 1.235883] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x0000ffff 64bit] [ 1.236070] pci 0000:01:00.0: Upstream bridge's Max Payload Size set to 128 (was 256, max 256) [ 1.236106] pci 0000:01:00.0: Max Payload Size set to 128 (was 128, max 128) [ 1.236439] pci 0000:01:00.0: supports D1 [ 1.236456] pci 0000:01:00.0: PME# supported from D0 D1 D3hot [ 1.236486] pci 0000:01:00.0: PME# disabled [ 1.236809] pci 0000:01:00.0: disabling ASPM on pre-1.1 PCIe device. You can enable it with 'pcie_aspm=force' [ 1.241223] pci_bus 0000:01: fixups for bus [ 1.241243] pci_bus 0000:01: bus scan returning with max=01 [ 1.241263] pci_bus 0000:01: busn_res: [bus 01-1f] end is updated to 01 [ 1.241290] pci_bus 0000:00: bus scan returning with max=01 [ 1.241319] pci 0000:00:00.0: BAR 8: assigned [mem 0xfa000000-0xfa0fffff] [ 1.241368] pci 0000:01:00.0: BAR 0: assigned [mem 0xfa000000-0xfa00ffff 64bit] [ 1.241435] pci 0000:00:00.0: PCI bridge to [bus 01] [ 1.241458] pci 0000:00:00.0: bridge window [mem 0xfa000000-0xfa0fffff] [ 1.243397] EINJ: ACPI disabled. [ 1.253021] dma-pl330 ff6d0000.dma-controller: Loaded driver for PL330 DMAC-241330 [ 1.253054] dma-pl330 ff6d0000.dma-controller: DBUFF-32x8bytes Num_Chans-6 Num_Peri-12 Num_Events-12 [ 1.254591] dma-pl330 ff6e0000.dma-controller: Loaded driver for PL330 DMAC-241330 [ 1.254620] dma-pl330 ff6e0000.dma-controller: DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Events-16 [ 1.261322] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled [ 1.264205] ff180000.serial: ttyS0 at MMIO 0xff180000 (irq = 45, base_baud = 1500000) is a 16550A [ 1.264433] serial serial0: tty port ttyS0 registered [ 1.265363] ff1a0000.serial: ttyS2 at MMIO 0xff1a0000 (irq = 46, base_baud = 1500000) is a 16550A [ 1.385323] printk: console [ttyS2] enabled [ 1.387062] Serial: AMBA driver [ 1.389738] rockchip-vop ff8f0000.vop: Adding to iommu group 3 [ 1.391124] rockchip-vop ff900000.vop: Adding to iommu group 4 [ 1.393512] cdn-dp fec00000.dp: [drm:cdn_dp_probe] ERROR missing extcon or phy [ 1.394384] cdn-dp: probe of fec00000.dp failed with error -22 [ 1.404307] cacheinfo: Unable to detect cache hierarchy for CPU 0 [ 1.409109] libphy: Fixed MDIO Bus: probed [ 1.411839] rk_gmac-dwmac fe300000.ethernet: IRQ eth_wake_irq not found [ 1.412444] rk_gmac-dwmac fe300000.ethernet: IRQ eth_lpi not found [ 1.413126] rk_gmac-dwmac fe300000.ethernet: PTP uses main clock [ 1.413715] rk_gmac-dwmac fe300000.ethernet: phy regulator is not available yet, deferred probing [ 1.433334] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 1.433946] ehci-pci: EHCI PCI platform driver [ 1.434393] ehci-platform: EHCI generic platform driver [ 1.437260] ehci-platform fe380000.usb: EHCI Host Controller [ 1.437993] ehci-platform fe380000.usb: new USB bus registered, assigned bus number 1 [ 1.438854] ehci-platform fe380000.usb: irq 35, io mem 0xfe380000 [ 1.451381] ehci-platform fe380000.usb: USB 2.0 started, EHCI 1.00 [ 1.452186] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.12 [ 1.452934] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.453582] usb usb1: Product: EHCI Host Controller [ 1.454024] usb usb1: Manufacturer: Linux 5.12.3 ehci_hcd [ 1.454509] usb usb1: SerialNumber: fe380000.usb [ 1.455516] hub 1-0:1.0: USB hub found [ 1.455898] hub 1-0:1.0: 1 port detected [ 1.459036] ehci-platform fe3c0000.usb: EHCI Host Controller [ 1.459781] ehci-platform fe3c0000.usb: new USB bus registered, assigned bus number 2 [ 1.460605] ehci-platform fe3c0000.usb: irq 37, io mem 0xfe3c0000 [ 1.474705] ehci-platform fe3c0000.usb: USB 2.0 started, EHCI 1.00 [ 1.475498] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.12 [ 1.476245] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.476894] usb usb2: Product: EHCI Host Controller [ 1.477333] usb usb2: Manufacturer: Linux 5.12.3 ehci_hcd [ 1.477820] usb usb2: SerialNumber: fe3c0000.usb [ 1.478774] hub 2-0:1.0: USB hub found [ 1.479162] hub 2-0:1.0: 1 port detected [ 1.480589] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 1.481164] ohci-pci: OHCI PCI platform driver [ 1.481646] ohci-platform: OHCI generic platform driver [ 1.482425] ohci-platform fe3a0000.usb: Generic Platform OHCI controller [ 1.483235] ohci-platform fe3a0000.usb: new USB bus registered, assigned bus number 3 [ 1.484066] ohci-platform fe3a0000.usb: irq 36, io mem 0xfe3a0000 [ 1.542245] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.12 [ 1.542995] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.543643] usb usb3: Product: Generic Platform OHCI controller [ 1.544174] usb usb3: Manufacturer: Linux 5.12.3 ohci_hcd [ 1.544659] usb usb3: SerialNumber: fe3a0000.usb [ 1.545621] hub 3-0:1.0: USB hub found [ 1.546001] hub 3-0:1.0: 1 port detected [ 1.547034] ohci-platform fe3e0000.usb: Generic Platform OHCI controller [ 1.547832] ohci-platform fe3e0000.usb: new USB bus registered, assigned bus number 4 [ 1.548666] ohci-platform fe3e0000.usb: irq 38, io mem 0xfe3e0000 [ 1.608900] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.12 [ 1.609651] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.610300] usb usb4: Product: Generic Platform OHCI controller [ 1.610832] usb usb4: Manufacturer: Linux 5.12.3 ohci_hcd [ 1.611317] usb usb4: SerialNumber: fe3e0000.usb [ 1.612276] hub 4-0:1.0: USB hub found [ 1.612657] hub 4-0:1.0: 1 port detected [ 1.614573] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller [ 1.615320] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 5 [ 1.616160] xhci-hcd xhci-hcd.0.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x0000000002010010 [ 1.617056] xhci-hcd xhci-hcd.0.auto: irq 78, io mem 0xfe800000 [ 1.618059] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.12 [ 1.618807] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.619454] usb usb5: Product: xHCI Host Controller [ 1.619895] usb usb5: Manufacturer: Linux 5.12.3 xhci-hcd [ 1.620381] usb usb5: SerialNumber: xhci-hcd.0.auto [ 1.621369] hub 5-0:1.0: USB hub found [ 1.621757] hub 5-0:1.0: 1 port detected [ 1.622465] xhci-hcd xhci-hcd.0.auto: xHCI Host Controller [ 1.623143] xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 6 [ 1.623841] xhci-hcd xhci-hcd.0.auto: Host supports USB 3.0 SuperSpeed [ 1.624502] usb usb6: We don't know the algorithms for LPM for this host, disabling LPM. [ 1.625408] usb usb6: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.12 [ 1.626154] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.626802] usb usb6: Product: xHCI Host Controller [ 1.627243] usb usb6: Manufacturer: Linux 5.12.3 xhci-hcd [ 1.627730] usb usb6: SerialNumber: xhci-hcd.0.auto [ 1.628722] hub 6-0:1.0: USB hub found [ 1.629102] hub 6-0:1.0: 1 port detected [ 1.630044] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller [ 1.630737] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 7 [ 1.631608] xhci-hcd xhci-hcd.1.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x0000000002010010 [ 1.632507] xhci-hcd xhci-hcd.1.auto: irq 79, io mem 0xfe900000 [ 1.633439] usb usb7: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.12 [ 1.634186] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.634854] usb usb7: Product: xHCI Host Controller [ 1.635296] usb usb7: Manufacturer: Linux 5.12.3 xhci-hcd [ 1.635781] usb usb7: SerialNumber: xhci-hcd.1.auto [ 1.636775] hub 7-0:1.0: USB hub found [ 1.637155] hub 7-0:1.0: 1 port detected [ 1.637860] xhci-hcd xhci-hcd.1.auto: xHCI Host Controller [ 1.638568] xhci-hcd xhci-hcd.1.auto: new USB bus registered, assigned bus number 8 [ 1.639267] xhci-hcd xhci-hcd.1.auto: Host supports USB 3.0 SuperSpeed [ 1.639927] usb usb8: We don't know the algorithms for LPM for this host, disabling LPM. [ 1.640794] usb usb8: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.12 [ 1.641560] usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.642209] usb usb8: Product: xHCI Host Controller [ 1.642649] usb usb8: Manufacturer: Linux 5.12.3 xhci-hcd [ 1.643135] usb usb8: SerialNumber: xhci-hcd.1.auto [ 1.644103] hub 8-0:1.0: USB hub found [ 1.644480] hub 8-0:1.0: 1 port detected [ 1.645412] usbcore: registered new interface driver usb-storage [ 1.646018] usbcore: registered new interface driver ums-realtek [ 1.646659] usbcore: registered new interface driver usbserial_generic [ 1.647266] usbserial: USB Serial support registered for generic [ 1.650523] mousedev: PS/2 mouse device common for all mice [ 1.657600] rk808 0-001b: chip id: 0x0 [ 1.662568] rk808-regulator rk808-regulator: there is no dvs0 gpio [ 1.663154] rk808-regulator rk808-regulator: there is no dvs1 gpio [ 1.664833] usb3_vbus: supplied by vcc5v0_sys [ 1.665362] vcc3v3_sys: supplied by vcc_sys [ 1.665794] vcc3v0_sd: supplied by vcc3v3_sys [ 1.666254] vdd_center: supplied by vcc3v3_sys [ 1.667266] vdd_cpu_l: supplied by vcc3v3_sys [ 1.667922] vcc_ddr: supplied by vcc3v3_sys [ 1.668942] vcc1v8: supplied by vcc3v3_sys [ 1.670723] vcc1v8_dvp: supplied by vcc3v3_sys [ 1.672211] vcc3v0_touch: supplied by vcc3v3_sys [ 1.673751] vcc1v8_pmu: supplied by vcc3v3_sys [ 1.675316] vcc_sdio: supplied by vcc3v3_sys [ 1.676681] vcca3v0_codec: supplied by vcc3v3_sys [ 1.678216] vcc_1v5: supplied by vcc3v3_sys [ 1.679618] vcca1v8_codec: supplied by vcc3v3_sys [ 1.681189] vcc_3v0: supplied by vcc3v3_sys [ 1.682020] vcc3v3_s3: supplied by vcc3v3_sys [ 1.682867] vcc3v3_s0: supplied by vcc3v3_sys [ 1.685504] fan53555-regulator 0-0040: FAN53555 Option[8] Rev[1] Detected! [ 1.687403] vdd_cpu_b: supplied by vcc3v3_sys [ 1.689477] fan53555-regulator 0-0041: FAN53555 Option[8] Rev[1] Detected! [ 1.691439] vdd_gpu: supplied by vcc3v3_sys [ 1.694462] OF: graph: no port node found in /i2c@ff3d0000/fusb30x@22 [ 1.705055] random: fast init done [ 1.716355] sdhci: Secure Digital Host Controller Interface driver [ 1.716905] sdhci: Copyright(c) Pierre Ossman [ 1.717481] Synopsys Designware Multimedia Card Interface Driver [ 1.718797] dwmmc_rockchip fe310000.mmc: IDMAC supports 32-bit address mode. [ 1.719118] sdhci-pltfm: SDHCI platform and OF driver helper [ 1.719220] dwmmc_rockchip fe320000.mmc: IDMAC supports 32-bit address mode. [ 1.719248] dwmmc_rockchip fe320000.mmc: Using internal DMA controller. [ 1.719258] dwmmc_rockchip fe320000.mmc: Version ID is 270a [ 1.719316] dwmmc_rockchip fe320000.mmc: DW MMC controller at irq 33,32 bit host data width,256 deep fifo [ 1.719437] dwmmc_rockchip fe310000.mmc: Using internal DMA controller. [ 1.719745] dwmmc_rockchip fe320000.mmc: Got CD GPIO [ 1.721306] mmc2: CQHCI version 5.10 [ 1.721617] dwmmc_rockchip fe310000.mmc: Version ID is 270a [ 1.721649] dwmmc_rockchip fe310000.mmc: DW MMC controller at irq 32,32 bit host data width,256 deep fifo [ 1.725300] dwmmc_rockchip fe310000.mmc: allocated mmc-pwrseq [ 1.725810] mmc_host mmc0: card is non-removable. [ 1.726385] ledtrig-cpu: registered to indicate activity on CPUs [ 1.727396] hid: raw HID events driver (C) Jiri Kosina [ 1.727921] usbcore: registered new interface driver usbhid [ 1.728464] usbhid: USB HID core driver [ 1.732799] mmc_host mmc1: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0) [ 1.733388] NET: Registered protocol family 17 [ 1.734440] Key type dns_resolver registered [ 1.735447] registered taskstats version 1 [ 1.735823] Loading compiled-in X.509 certificates [ 1.736512] zswap: loaded using pool lzo/zbud [ 1.738297] mmc_host mmc0: Bus speed (slot 0) = 400000Hz (slot req 400000Hz, actual 400000HZ div = 0) [ 1.747397] mmc2: SDHCI controller on fe330000.mmc [fe330000.mmc] using ADMA [ 1.757673] rk_gmac-dwmac fe300000.ethernet: IRQ eth_wake_irq not found [ 1.758295] rk_gmac-dwmac fe300000.ethernet: IRQ eth_lpi not found [ 1.758893] rk_gmac-dwmac fe300000.ethernet: PTP uses main clock [ 1.759531] rk_gmac-dwmac fe300000.ethernet: clock input or output? (input). [ 1.760151] rk_gmac-dwmac fe300000.ethernet: TX delay(0x28). [ 1.760649] rk_gmac-dwmac fe300000.ethernet: RX delay(0x11). [ 1.761148] rk_gmac-dwmac fe300000.ethernet: integrated PHY? (no). [ 1.761730] rk_gmac-dwmac fe300000.ethernet: cannot get clock clk_mac_speed [ 1.762340] rk_gmac-dwmac fe300000.ethernet: clock input from PHY [ 1.767879] rk_gmac-dwmac fe300000.ethernet: init for RGMII [ 1.768914] rk_gmac-dwmac fe300000.ethernet: User ID: 0x10, Synopsys ID: 0x35 [ 1.769559] rk_gmac-dwmac fe300000.ethernet: DWMAC1000 [ 1.770020] rk_gmac-dwmac fe300000.ethernet: DMA HW capability register supported [ 1.770676] rk_gmac-dwmac fe300000.ethernet: RX Checksum Offload Engine supported [ 1.771332] rk_gmac-dwmac fe300000.ethernet: COE Type 2 [ 1.771814] rk_gmac-dwmac fe300000.ethernet: TX Checksum insertion supported [ 1.772432] rk_gmac-dwmac fe300000.ethernet: Wake-Up On Lan supported [ 1.773043] rk_gmac-dwmac fe300000.ethernet: Normal descriptors [ 1.773563] rk_gmac-dwmac fe300000.ethernet: Ring mode enabled [ 1.774074] rk_gmac-dwmac fe300000.ethernet: Enable RX Mitigation via HW Watchdog Timer [ 1.786710] mmc_host mmc1: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0) [ 1.787363] mmc0: queuing unknown CIS tuple 0x80 (2 bytes) [ 1.787937] mmc1: new high speed SDHC card at address 1234 [ 1.789582] mmcblk1: mmc1:1234 SA16G 14.4 GiB [ 1.789745] mmc0: queuing unknown CIS tuple 0x80 (3 bytes) [ 1.792285] mmc0: queuing unknown CIS tuple 0x80 (3 bytes) [ 1.792306] mmcblk1: p1 p2 [ 1.796088] mmc0: queuing unknown CIS tuple 0x80 (7 bytes) [ 1.800609] mmc0: queuing unknown CIS tuple 0x81 (9 bytes) [ 1.816971] mmc2: Command Queue Engine enabled [ 1.817413] mmc2: new HS400 Enhanced strobe MMC card at address 0001 [ 1.818793] mmcblk2: mmc2:0001 AJTD4R 14.6 GiB [ 1.819349] mmcblk2boot0: mmc2:0001 AJTD4R partition 1 4.00 MiB [ 1.820011] mmcblk2boot1: mmc2:0001 AJTD4R partition 2 4.00 MiB [ 1.820746] mmcblk2rpmb: mmc2:0001 AJTD4R partition 3 4.00 MiB, chardev (241:0) [ 1.822551] mmcblk2: p1 [ 1.856314] libphy: stmmac: probed [ 1.856631] RTL8211E Gigabit Ethernet stmmac-0:00: attached PHY driver (mii_bus:phy_addr=stmmac-0:00, irq=POLL) [ 1.857515] RTL8211E Gigabit Ethernet stmmac-0:01: attached PHY driver (mii_bus:phy_addr=stmmac-0:01, irq=POLL) [ 1.861999] ALSA device list: [ 1.862018] mmc_host mmc0: Bus speed (slot 0) = 148500000Hz (slot req 150000000Hz, actual 148500000HZ div = 0) [ 1.862280] No soundcards found. [ 1.863589] dw-apb-uart ff1a0000.serial: forbid DMA for kernel console [ 1.892998] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: disabled. [ 1.893917] VFS: Mounted root (ext4 filesystem) on device 179:2. [ 1.895705] devtmpfs: mounted [ 1.900441] Freeing unused kernel memory: 6016K [ 1.908266] Run /sbin/init as init process [ 1.908645] with arguments: [ 1.908909] /sbin/init [ 1.909150] with environment: [ 1.909426] HOME=/ [ 1.909636] TERM=linux [ 1.975140] usb 8-1: new SuperSpeed Gen 1 USB device number 2 using xhci-hcd [ 1.995444] usb 8-1: New USB device found, idVendor=152d, idProduct=0578, bcdDevice=31.02 [ 1.996176] usb 8-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 1.996802] usb 8-1: Product: USB to ATA/ATAPI Bridge [ 1.997247] usb 8-1: Manufacturer: JMicron [ 1.997608] usb 8-1: SerialNumber: 0123456789ABCDEF [ 1.999426] usb-storage 8-1:1.0: USB Mass Storage device detected [ 2.000669] usb-storage 8-1:1.0: Quirks match for vid 152d pid 0578: 1000000 [ 2.001674] scsi host0: usb-storage 8-1:1.0 [ 2.118072] usb 4-1: new full-speed USB device number 2 using ohci-platform [ 2.138519] dwmmc_rockchip fe310000.mmc: Successfully tuned phase to 238 [ 2.144439] mmc0: new ultra high speed SDR104 SDIO card at address 0001 [ 2.334812] usb 4-1: New USB device found, idVendor=1d57, idProduct=ad03, bcdDevice= 2.00 [ 2.335576] usb 4-1: New USB device strings: Mfr=1, Product=0, SerialNumber=0 [ 2.336231] usb 4-1: Manufacturer: FREEWAY TECHNOLOGY [ 2.346546] input: FREEWAY TECHNOLOGY Keyboard as /devices/platform/fe3e0000.usb/usb4/4-1/4-1:1.2/0003:1D57:AD03.0001/input/input0 [ 2.402263] input: FREEWAY TECHNOLOGY as /devices/platform/fe3e0000.usb/usb4/4-1/4-1:1.2/0003:1D57:AD03.0001/input/input1 [ 2.403736] hid-generic 0003:1D57:AD03.0001: input,hiddev96,hidraw0: USB HID v1.01 Keyboard [FREEWAY TECHNOLOGY] on usb-fe3e0000.usb-1/input2 [ 2.410582] input: FREEWAY TECHNOLOGY as /devices/platform/fe3e0000.usb/usb4/4-1/4-1:1.3/0003:1D57:AD03.0002/input/input3 [ 2.412346] hid-generic 0003:1D57:AD03.0002: input,hidraw1: USB HID v1.01 Mouse [FREEWAY TECHNOLOGY] on usb-fe3e0000.usb-1/input3 [ 2.587739] udevd[241]: starting version 3.2.7 [ 2.597060] random: udevd: uninitialized urandom read (16 bytes read) [ 2.599236] random: udevd: uninitialized urandom read (16 bytes read) [ 2.599857] random: udevd: uninitialized urandom read (16 bytes read) [ 2.620160] udevd[242]: starting eudev-3.2.7 [ 2.679089] pwm-backlight backlight: supply power not found, using dummy regulator [ 2.775527] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 2.783269] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 2.806322] pwm-backlight backlight: supply power not found, using dummy regulator [ 2.806719] ssd1307fb 2-003c: Couldn't send I2C command. [ 2.811380] vdd_log: supplied by regulator-dummy [ 2.831538] Bluetooth: Core ver 2.22 [ 2.831997] NET: Registered protocol family 31 [ 2.832412] Bluetooth: HCI device and connection manager initialized [ 2.832419] dw_wdt ff848000.watchdog: No valid TOPs array specified [ 2.832992] Bluetooth: HCI socket layer initialized [ 2.833982] Bluetooth: L2CAP socket layer initialized [ 2.834458] Bluetooth: SCO socket layer initialized [ 2.841710] rk808-rtc rk808-rtc: registered as rtc0 [ 2.842820] rk808-rtc rk808-rtc: setting system clock to 2013-01-18T08:53:52 UTC (1358499232) [ 2.869105] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43456-sdio for chip BCM4345/9 [ 2.871482] mc: Linux media interface: v0.10 [ 2.873861] usbcore: registered new interface driver brcmfmac [ 2.891174] rt5651 1-001a: Failed to reguest IRQ 0: -22 [ 2.898664] videodev: Linux video capture interface: v2.00 [ 2.960327] brcmfmac mmc0:0001:1: Direct firmware load for brcm/brcmfmac43456-sdio.xunlong,orangepi-4.txt failed with error -2 [ 2.961514] brcmfmac mmc0:0001:1: Falling back to sysfs fallback for: brcm/brcmfmac43456-sdio.xunlong,orangepi-4.txt [ 2.961821] input: realtek,rt5651-codec Headphones as /devices/platform/rt5651-sound/sound/card0/input4 [ 2.966950] panfrost ff9a0000.gpu: clock rate = 500000000 [ 2.971796] panfrost ff9a0000.gpu: mali-t860 id 0x860 major 0x2 minor 0x0 status 0x0 [ 2.972493] panfrost ff9a0000.gpu: features: 00000000,100e77bf, issues: 00000000,24040400 [ 2.973213] panfrost ff9a0000.gpu: Features: L2:0x07120206 Shader:0x00000000 Tiler:0x00000809 Mem:0x1 MMU:0x00002830 AS:0xff JS:0x7 [ 2.973573] input: gpio-keys as /devices/platform/gpio-keys/input/input5 [ 2.974250] panfrost ff9a0000.gpu: shader_present=0xf l2_present=0x1 [ 2.975355] [drm] Initialized panfrost 1.1.0 20180908 for ff9a0000.gpu on minor 0 [ 2.980898] random: crng init done [ 2.981235] random: 2 urandom warning(s) missed due to ratelimiting [ 2.990106] Bluetooth: HCI UART driver ver 2.3 [ 2.990517] Bluetooth: HCI UART protocol H4 registered [ 2.990969] Bluetooth: HCI UART protocol BCSP registered [ 2.991569] Bluetooth: HCI UART protocol LL registered [ 2.992033] Bluetooth: HCI UART protocol ATH3K registered [ 2.992532] Bluetooth: HCI UART protocol Three-wire (H5) registered [ 2.993293] Bluetooth: HCI UART protocol Intel registered [ 2.994157] Bluetooth: HCI UART protocol Broadcom registered [ 2.994554] hci_uart_bcm serial0-0: supply vbat not found, using dummy regulator [ 2.994794] Bluetooth: HCI UART protocol QCA registered [ 2.995654] hci_uart_bcm serial0-0: supply vddio not found, using dummy regulator [ 2.995813] Bluetooth: HCI UART protocol Marvell registered [ 3.006984] usbcore: registered new interface driver snd-usb-audio [ 3.010768] hantro_vpu: module is from the staging directory, the quality is unknown, you have been warned. [ 3.014561] hantro-vpu ff650000.video-codec: Adding to iommu group 0 [ 3.015471] rockchip_vdec: module is from the staging directory, the quality is unknown, you have been warned. [ 3.017320] hantro-vpu ff650000.video-codec: registered rockchip,rk3399-vpu-enc as /dev/video0 [ 3.018558] hantro-vpu ff650000.video-codec: registered rockchip,rk3399-vpu-dec as /dev/video1 [ 3.019533] rkvdec ff660000.video-codec: Adding to iommu group 1 [ 3.021957] scsi 0:0:0:0: Direct-Access JMicron Generic 3102 PQ: 0 ANSI: 6 [ 3.023858] rockchip-iep ff670000.iep: Adding to iommu group 2 [ 3.024279] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 3.025590] sd 0:0:0:0: [sda] 234441648 512-byte logical blocks: (120 GB/112 GiB) [ 3.026739] sd 0:0:0:0: [sda] Write Protect is off [ 3.027205] sd 0:0:0:0: [sda] Mode Sense: 47 00 00 08 [ 3.028164] sd 0:0:0:0: [sda] Disabling FUA [ 3.028500] rockchip-iep ff670000.iep: Device rockchip-iep registered as /dev/video2 [ 3.028572] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 3.062448] sda: sda1 sda2 sda3 [ 3.064448] sd 0:0:0:0: [sda] Attached SCSI disk [ 3.115042] dw-apb-uart ff180000.serial: failed to request DMA [ 3.348938] Bluetooth: hci1: BCM: chip id 130 [ 3.349714] Bluetooth: hci1: BCM: features 0x0f [ 3.352295] Bluetooth: hci1: BCM4345C5 [ 3.352679] Bluetooth: hci1: BCM4345C5 (003.006.006) build 0000 [ 3.357249] Bluetooth: hci1: BCM4345C5 'brcm/BCM4345C5.hcd' Patch [ 3.599993] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null). Quota mode: disabled. [ 3.618428] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null). Quota mode: disabled. [ 4.224621] Bluetooth: hci1: BCM4345C5 37.4MHz wlbga_iLNA_iTR_eLG_BT5p0 [Baseline: 0054] [ 4.225403] Bluetooth: hci1: BCM4345C5 (003.006.006) build 0054 [ 10.426004] loop: module loaded [ 15.651050] FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. [ 16.248076] rk_gmac-dwmac fe300000.ethernet eth0: PHY [stmmac-0:00] driver [RTL8211E Gigabit Ethernet] (irq=POLL) [ 16.258145] rk_gmac-dwmac fe300000.ethernet eth0: No Safety Features support found [ 16.258864] rk_gmac-dwmac fe300000.ethernet eth0: PTP not supported by HW [ 16.259906] rk_gmac-dwmac fe300000.ethernet eth0: configuring for phy/rgmii link mode [ 20.325752] rk_gmac-dwmac fe300000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx [ 53.833432] NET: Registered protocol family 10 [ 53.835384] Segment Routing with IPv6 [ 64.583987] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43456-sdio for chip BCM4345/9 [ 64.595194] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/9 wl0: Feb 11 2020 11:54:51 version 7.45.96.61 (be7af2d@shgit) (r745790) FWID 01-a41d86bd es7.c5.n4.a3

warpme commented 3 years ago

"leave the module from kernel" - i understand we want kernel will NOT load dp module. If yes - then we can remove this module from sd card, go back with boot.scr without 'debug' and this may work? To remove module - pls mount 2nd sdcard partition and remove required module from /rootfs-ro/lib/modules/5.12.3/kernel/....

Shaggy013 commented 3 years ago

rk3399 debug serial is 1500000 on tty2 and

CONFIG_ROCKCHIP_CDN_DP is not set

or &cdn_dp { status = "disabled"; in dts

warpme commented 3 years ago

excellent :-) rebuilding 5.12.4 with "CONFIG_ROCKCHIP_CDN_DP is not set" + added wifi nvram for orangepi-4

Shaggy013 commented 3 years ago

well that is hard to do with a builtin and the dts does the trick also

you can add it as module and blacklist it maybey so when there is fix it is only dts instead a whole kernel

Shaggy013 commented 3 years ago

IMG_20210516_213823.jpg

you can see dubug is still on :)

warpme commented 3 years ago

nice :-) pls test also peripherals: i want to know what works and what not

re: your Q about why no initramfs etc. I personally don't see added value with adding initramfs in project like mm2 (single app runtime build for appliance) boot process is classical one with pivoting rootfs + overlays good thing from this approach for me is nice support for on-line system updates: i'm doing rsync on rootfs read-only underlay. next reboot and voila - i have fully updated system with minimal traffic for update, no any packages updates, etc.

Shaggy013 commented 3 years ago

yeh yeh is +10 years ago i used mythttv

well search crashedwith debug on but i will check it out

from that thought it is a good option i only noticed that a rk3399 is not fast with detecting all devices on boot .

damm i am little stuck i dont have mythtv server and still no serial console to check

warpme commented 3 years ago

I updated & uploaded image with CONFIG_ROCKCHIP_CDN_DP is not set" + added wifi nvram for orangepi-4. Interesting that i still have kernel boot hang with "debug" on rockpi4. DTS for rockpi4 seems to not enabling cdn_dp - so i think playing with CONFIG_ROCKCHIP_CDN_DP is not root cause solution and root issue is elsewhere.

btw: also interesting is that now i loose audio on many recordings. It looks like issue is by switch to mainline uboot as using sd card image with rksd-loader + rsync of current rootfs to this sd card brings audio back. very strange imho....

update: disabling video/HDMI in mainline boot defconfig fixes audio issue. Unfortunately boot still hangs when 'debug' is added to kernel cmd. line.

Shaggy013 commented 3 years ago

indeed the cause is that uboot and kernel are not 100% in sync

and the dp is a extra fb for a screen so that somehow get mixed up or not reset properly before kernel starts

you can disable hdmi and dp in uboot so kernel can fresh initialize them or dp in kernel dts with some warnings.

and thought i saw a try of patch last week on patchwork .

and if you look how a pinebook and a rockpro64 is brought up in uboot you see they fix some powerails due a extra reset. and playing with powerrails in not funny killed almost my board :)

for me removing the extcon in dts for dp fixes it for me to boot uboot and kernel with hdmi support and dp module on.

maybye this fix it ?

https://patchwork.kernel.org/project/linux-rockchip/patch/20210516074833.451643-1-javierm@redhat.com/

warpme commented 3 years ago

thx. i tried above patch on 5.12 and it looks it depends on future simple-framebuffer infra. looking on https://lore.kernel.org/virtualization/20210318102921.21536-1-tzimmermann@suse.de/ i see it is interesting. Unfortunately attempt to add it to 5.12 gives me cascade of missing dependencies like https://patchwork.kernel.org/project/dri-devel/cover/20210430105840.30515-1-tzimmermann@suse.de/ then https://github.com/gregkh/linux/commit/6dd7b6ce43acd70f75ae285fee8eeb2dd4933dce and much more...

Shaggy013 commented 3 years ago

yeah then it becomes messy indeed

media kernel it patches against

this looks also a fix for it

https://patchwork.kernel.org/project/linux-rockchip/patch/20210519134928.2696617-1-yangyingliang@huawei.com/

warpme commented 3 years ago

ok good :)

I built 11.19.2 with this patch applied + enabled back cdn_dp.

If you have running mm2 on Your OrangePI with Internet access You may try on-line updates. Easiest will be via GUI Also You can to from telenet session to board.

In telnet session you can type :

mm_do_online_update

this will show what will be updated

To update:

mm_do_online_update doupdate

sync

reboot

Updates will be active after board reboot....

Shaggy013 commented 3 years ago

thc cdn patch works

only your buildroot stops now at uboot-tools

make[12]: sdl2-config: No such file or directory cc1: error: /opt/powerpc/include: Permission denied make[13]: [scripts/Makefile.host:114: tools/gdb/gdbsend.o] Error 1 make[12]: [scripts/Makefile.build:432: tools/gdb] Error 2 make[11]: *** [Makefile:1728: tools] Error 2

warpme commented 3 years ago

hmm... may you pls: go to script/bootloaders/u-boot.tools

make clean 
make build DESTIMG="build"

and provide full log for above?

Shaggy013 commented 3 years ago

sure

configuration written to .config

# make[1]: Leaving directory '/home/thc013/Desktop/minimyth2/script/bootloaders/u-boot.tools/work/build.d/u-boot-8e51bf746a11d7f67416859da73a83109af4e0a3' [configure] complete for u-boot-20200220-tools. make[1]: Entering directory '/home/thc013/Desktop/minimyth2/script/bootloaders/u-boot.tools/work/build.d/u-boot-8e51bf746a11d7f67416859da73a83109af4e0a3' scripts/kconfig/conf --syncconfig Kconfig make[2]: sdl2-config: No such file or directory make[2]: sdl2-config: No such file or directory CHK include/config.h UPD include/config.h make[2]: sdl2-config: No such file or directory CFG u-boot.cfg make[2]: sdl2-config: No such file or directory GEN include/autoconf.mk make[2]: sdl2-config: No such file or directory GEN include/autoconf.mk.dep make[1]: sdl2-config: No such file or directory make[1]: sdl2-config: No such file or directory make[1]: sdl2-config: No such file or directory CHK include/config/uboot.release UPD include/config/uboot.release make[1]: sdl2-config: No such file or directory CHK include/generated/version_autogenerated.h UPD include/generated/version_autogenerated.h make[1]: sdl2-config: No such file or directory CHK include/generated/timestamp_autogenerated.h UPD include/generated/timestamp_autogenerated.h make[1]: sdl2-config: No such file or directory CC lib/asm-offsets.s CHK include/generated/generic-asm-offsets.h UPD include/generated/generic-asm-offsets.h make[1]: sdl2-config: No such file or directory HOSTCC scripts/dtc/dtc.o HOSTCC scripts/dtc/flattree.o HOSTCC scripts/dtc/fstree.o HOSTCC scripts/dtc/data.o HOSTCC scripts/dtc/livetree.o HOSTCC scripts/dtc/treesource.o HOSTCC scripts/dtc/srcpos.o HOSTCC scripts/dtc/checks.o HOSTCC scripts/dtc/util.o LEX scripts/dtc/dtc-lexer.lex.c YACC scripts/dtc/dtc-parser.tab.h HOSTCC scripts/dtc/dtc-lexer.lex.o YACC scripts/dtc/dtc-parser.tab.c HOSTCC scripts/dtc/dtc-parser.tab.o HOSTLD scripts/dtc/dtc HOSTCC scripts/bin2c make[1]: sdl2-config: No such file or directory HOSTCC tools/gdb/gdbsend.o cc1: error: /opt/powerpc/include: Permission denied make[3]: [scripts/Makefile.host:114: tools/gdb/gdbsend.o] Error 1 make[2]: [scripts/Makefile.build:432: tools/gdb] Error 2 make[1]: [Makefile:1728: tools] Error 2 make[1]: Leaving directory '/home/thc013/Desktop/minimyth2/script/bootloaders/u-boot.tools/work/build.d/u-boot-8e51bf746a11d7f67416859da73a83109af4e0a3' make: [Makefile:29: build-custom] Error 2

warpme commented 3 years ago

interesting line is: cc1: error: /opt/powerpc/include: Permission denied isn't that user under which you are compiling don't have any access rights to /opt/powerpc/include dir? I don't see such error under: archlinux 2020.10 archlinux 2021.03 fedora 33 fedora 34 ubuntu 20.04 ubuntu 21.04 what distro are you using as host? it will be good to enable verbose building of u-boot tools to see what is compiler invocation causing failure. Also you may turn-off parallel build (look at end of minimyth.conf.mk) to better correlate invocation with error.

Shaggy013 commented 3 years ago

That I checked. It just a clean xubuntu focal install Sent from my Huawei phone-------- Original message --------From: Piotr Oniszczuk @.>Date: Tue, 25 May 2021, 21:14To: warpme/minimyth2 @.>Cc: Shaggy013 @.>, Author @.>Subject: Re: [warpme/minimyth2] no build (#2) interesting line is: cc1: error: /opt/powerpc/include: Permission denied isn't that user under which you are compiling don't have any access rights to /opt/powerpc/include dir? I don't see such error under: archlinux 2020.10 archlinux 2021.03 fedora 33 fedora 34 ubuntu 20.04 ubuntu 21.04 what distro are you using as host? it will be good to enable verbose building of u-boot tools to see what is compiler invocation causing failure. Also you make turn-off parallel build (look at end of minimyth.conf.mk) to better correlate invocation with error.

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.

warpme commented 3 years ago

hmm, i can't reproduce your issue.

what i done:

mm2 build was uninterrupted - with single expected break: QtWebKit build exits due out of available memory (my vm has 8 cpu and 8GB ram. simple resume allows to finish mm2 build without any other interruptions).

did you install any additional software on yours xbuntu?

anyway: as i can't reproduce your's issue - only extra yours build logs my help us....

Shaggy013 commented 3 years ago

it is already strange that opt may not have write options for a user with that gar

i only have a build repo in it from armbian

user rights disabled for opt