Port Linux Mainline On Khadas VIM


#62

@numbqq
What for are that “0004-EMMC-add-EMMC-partitions-porting-from-amlogic-linux-.patch” i mean i understand what it do but why adding it to mainline kernel? Is it because you flash then image back to eMMC? or maybe for dual boot?


#63

Hi vrabac,

I want to install image on emmc.And I know that it is not a good way to add this to mainline kernel.

Thanks.


#64

hi @numbqq
i do not understand why you provide a 0001patch which creates kvim_defconfig
and then a 0002
patch that modifies the newly created kvim_defconfig

If you confirm my observation, why not just create the correct kvim_defconfig in one single step (example, just clone from github) ?
thanks


#65

here are the errors again while running the flash tool on windows,do not understand how a patch on kernel source codes can fix an error during the flashing process and in the formatting emmc step.
let me double check again the steps where patches were applied, but i

edit: format code below

[23:04:20 288][Global][Inf]--Scan usb device
[23:04:20 288][Global][Inf]--Aml scan WorldCup Device
[23:04:20 288][Global][Inf]--Host: USB xHCI Compliant Host Controller
[23:04:20 288][Global][Inf]--DevPath:\\?\pci#ven_8086&dev_0f35&subsys_0f358086&rev_0f#3&11583659&1&a0#{3abf6f2d-71c4-462a-8a92-1e6861e6af27}
[23:04:20 288][Global][Inf]---->Roothub:USB#ROOT_HUB30#4&39eecd18&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[23:04:20 288][Global][Inf]-------->[Port0]Other device
[23:04:20 288][Global][Inf]-------->[Port1]USB#VID_05E3&PID_0608#5&189fc590&0&2#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[23:04:20 288][Global][Inf]---------->[Port0]NoDeviceConnected
[23:04:20 288][Global][Inf]---------->[Port1]NoDeviceConnected
[23:04:20 288][Global][Inf]---------->[Port2]NoDeviceConnected
[23:04:20 288][Global][Inf]---------->[Port3]Other device
[23:04:20 288][Global][Inf]-------->[Port2]NoDeviceConnected
[23:04:20 288][Global][Inf]-------->[Port3]NoDeviceConnected
[23:04:20 288][Global][Inf]-------->[Port4]NoDeviceConnected
[23:04:20 288][Global][Inf]-------->[Port5]NoDeviceConnected
[23:04:20 288][Global][Inf]-------->[Port6]NoDeviceConnected
[23:04:20 288][Global][Inf]--Scan USB host controller complete
[23:04:20 303][Global][Inf]--Update data center with HubMap
[23:04:33 354][Global][Inf]--Catch DBT_DEVICEARRIVAL
[23:04:33 354][Global][Inf]--Scan usb device
[23:04:33 354][Global][Inf]--Aml scan WorldCup Device
[23:04:33 354][Global][Inf]--Host: USB xHCI Compliant Host Controller
[23:04:33 354][Global][Inf]--DevPath:\\?\pci#ven_8086&dev_0f35&subsys_0f358086&rev_0f#3&11583659&1&a0#{3abf6f2d-71c4-462a-8a92-1e6861e6af27}
[23:04:33 354][Global][Inf]---->Roothub:USB#ROOT_HUB30#4&39eecd18&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[23:04:33 354][Global][Inf]-------->[Port0]Other device
[23:04:33 370][Global][Inf]-------->[Port1]USB#VID_05E3&PID_0608#5&189fc590&0&2#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[23:04:33 370][Global][Inf]---------->[Port0]\\?\usb#vid_1b8e&pid_c003#6&a149253&0&1#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
[23:04:33 370][Global][Inf]---------->[Port1]NoDeviceConnected
[23:04:33 370][Global][Inf]---------->[Port2]NoDeviceConnected
[23:04:33 370][Global][Inf]---------->[Port3]Other device
[23:04:33 370][Global][Inf]-------->[Port2]NoDeviceConnected
[23:04:33 370][Global][Inf]-------->[Port3]NoDeviceConnected
[23:04:33 370][Global][Inf]-------->[Port4]NoDeviceConnected
[23:04:33 370][Global][Inf]-------->[Port5]NoDeviceConnected
[23:04:33 370][Global][Inf]-------->[Port6]NoDeviceConnected
[23:04:33 370][Global][Inf]--Scan USB host controller complete
[23:04:33 370][Global][Inf]--Update data center with HubMap
[23:04:33 370][Global][Inf]--Insert new hub2
[23:04:33 370][Global][Inf]--Update hub2 device data
[23:04:33 370][Global][Inf]--Update HUB2-1 \\?\usb#vid_1b8e&pid_c003#6&a149253&0&1#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
[23:04:33 370][HUB2-1][Inf]--Update device path
[23:04:33 370][Global][Inf]--Begin thread for HUB2-1
[23:04:33 370][Global][Inf]--Update HUB2-2 
[23:04:33 370][Global][Inf]--Burning thread HUB2-1 start
[23:04:33 370][HUB2-2][Inf]--Update device path
[23:04:33 370][Global][Inf]--Update HUB2-3 
[23:04:33 370][HUB2-3][Inf]--Update device path
[23:04:33 370][Global][Inf]--Burning thread HUB2-1 begin run
[23:04:33 370][Global][Inf]--Update HUB2-4 
[23:04:33 370][HUB2-4][Inf]--Update device path
[23:04:40 526][Global][Inf]--User click open button
[23:04:46 136][Global][Inf]--Image path C:\Users\raxy\Downloads\updateRaxy412-xenial.img
[23:05:00 316][Global][Inf]--Parsing burning package
[23:05:00 316][Global][Inf]--Load configuration file C:\Program Files\Amlogic\USB_Burning_Tool\temp
[23:05:00 316][Global][Inf]--Parse burning configuration file C:\Program Files\Amlogic\USB_Burning_Tool\temp\burn_config.xml
[23:05:00 316][Global][Inf]--Get burning key
[23:05:05 754][Global][Inf]--User click start button
[23:05:05 754][Global][Inf]--SetErase
[23:05:05 754][Global][Inf]--Enable burning 1
[23:05:05 754][Global][Inf]--Scan usb device
[23:05:05 754][Global][Inf]--Aml scan WorldCup Device
[23:05:05 754][Global][Inf]--Host: USB xHCI Compliant Host Controller
[23:05:05 754][Global][Inf]--DevPath:\\?\pci#ven_8086&dev_0f35&subsys_0f358086&rev_0f#3&11583659&1&a0#{3abf6f2d-71c4-462a-8a92-1e6861e6af27}
[23:05:05 769][Global][Inf]---->Roothub:USB#ROOT_HUB30#4&39eecd18&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[23:05:05 769][Global][Inf]-------->[Port0]Other device
[23:05:05 769][Global][Inf]-------->[Port1]USB#VID_05E3&PID_0608#5&189fc590&0&2#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[23:05:05 769][Global][Inf]---------->[Port0]\\?\usb#vid_1b8e&pid_c003#6&a149253&0&1#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
[23:05:05 769][Global][Inf]---------->[Port1]NoDeviceConnected
[23:05:05 769][Global][Inf]---------->[Port2]NoDeviceConnected
[23:05:05 769][Global][Inf]---------->[Port3]Other device
[23:05:05 769][Global][Inf]-------->[Port2]NoDeviceConnected
[23:05:05 769][Global][Inf]-------->[Port3]NoDeviceConnected
[23:05:05 769][Global][Inf]-------->[Port4]NoDeviceConnected
[23:05:05 769][Global][Inf]-------->[Port5]NoDeviceConnected
[23:05:05 769][Global][Inf]-------->[Port6]NoDeviceConnected
[23:05:05 769][Global][Inf]--Scan USB host controller complete
[23:05:05 769][Global][Inf]--Update data center with HubMap
[23:05:05 769][Global][Inf]--Update hub2 device data
[23:05:05 769][Global][Inf]--Update HUB2-1 \\?\usb#vid_1b8e&pid_c003#6&a149253&0&1#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
[23:05:05 769][HUB2-1][Inf]--Update device path
[23:05:05 769][Global][Inf]--Update HUB2-2 
[23:05:05 769][HUB2-2][Inf]--Update device path
[23:05:05 769][Global][Inf]--Update HUB2-3 
[23:05:05 769][HUB2-3][Inf]--Update device path
[23:05:05 769][Global][Inf]--Update HUB2-4 
[23:05:05 769][HUB2-4][Inf]--Update device path
[23:05:05 801][HUB2-1][Inf]--Open device handle \\?\usb#vid_1b8e&pid_c003#6&a149253&0&1#{a5dcbf10-6530-11d2-901f-00c04fb951ed}  0x00000414
[23:05:05 863][HUB2-1][Inf]--CloneImageProxy
[23:05:05 863][HUB2-1][Inf]--Connect path=USB xHCI Compliant Host Controller/P0/P1/P0
[23:05:05 863][HUB2-1][Inf]--Start burning...
[23:05:05 926][HUB2-1][Inf]--------------ERASE BOOTLOADER------------
[23:05:05 926][HUB2-1][Inf]--0-7-0-16
[23:05:05 926][HUB2-1][Inf]--Identify status success
[23:05:05 926][HUB2-1][Inf]--    low_power
[23:05:05 926][HUB2-1][Inf]--Low power command success
[23:05:05 926][HUB2-1][Inf]--Read low power success
[23:05:05 926][HUB2-1][Inf]--bootloader_is_old
[23:05:05 926][HUB2-1][Inf]--Bootloader command success
[23:05:05 941][HUB2-1][Inf]--Bootloader is old
[23:05:05 941][HUB2-1][Inf]--erase_bootloader
[23:05:05 941][HUB2-1][Inf]--Erase command success
[23:05:05 941][HUB2-1][Inf]--Read erase status success
[23:05:05 941][HUB2-1][Inf]--reset
[23:05:05 941][HUB2-1][Inf]--reset command success
[23:05:06 957][Global][Inf]--Catch DBT_DEVICEREMOVECOMPLETE
[23:05:06 957][Global][Inf]--Scan usb device
[23:05:06 957][Global][Inf]--Aml scan WorldCup Device
[23:05:06 973][Global][Inf]--Host: USB xHCI Compliant Host Controller
[23:05:06 973][Global][Inf]--DevPath:\\?\pci#ven_8086&dev_0f35&subsys_0f358086&rev_0f#3&11583659&1&a0#{3abf6f2d-71c4-462a-8a92-1e6861e6af27}
[23:05:06 973][Global][Inf]---->Roothub:USB#ROOT_HUB30#4&39eecd18&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[23:05:06 973][Global][Inf]-------->[Port0]Other device
[23:05:06 973][Global][Inf]-------->[Port1]USB#VID_05E3&PID_0608#5&189fc590&0&2#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[23:05:06 973][Global][Inf]---------->[Port0]NoDeviceConnected
[23:05:06 973][Global][Inf]---------->[Port1]NoDeviceConnected
[23:05:06 973][Global][Inf]---------->[Port2]NoDeviceConnected
[23:05:06 973][Global][Inf]---------->[Port3]Other device
[23:05:06 973][Global][Inf]-------->[Port2]NoDeviceConnected
[23:05:06 973][Global][Inf]-------->[Port3]NoDeviceConnected
[23:05:06 973][Global][Inf]-------->[Port4]NoDeviceConnected
[23:05:06 973][Global][Inf]-------->[Port5]NoDeviceConnected
[23:05:06 973][Global][Inf]-------->[Port6]NoDeviceConnected
[23:05:06 973][Global][Inf]--Scan USB host controller complete
[23:05:06 973][Global][Inf]--Update data center with HubMap
[23:05:06 973][Global][Inf]--Update hub2 device data
[23:05:06 973][Global][Inf]--Update HUB2-1 
[23:05:06 973][HUB2-1][Inf]--Update device path
[23:05:06 973][Global][Inf]--Update HUB2-2 
[23:05:06 973][HUB2-2][Inf]--Update device path
[23:05:06 973][Global][Inf]--Update HUB2-3 
[23:05:06 973][HUB2-3][Inf]--Update device path
[23:05:06 973][Global][Inf]--Update HUB2-4 
[23:05:06 973][HUB2-4][Inf]--Update device path
[23:05:07 004][HUB2-1][Inf]--Device is removed
[23:05:08 300][Global][Inf]--Catch DBT_DEVICEARRIVAL
[23:05:08 300][Global][Inf]--Scan usb device
[23:05:08 300][Global][Inf]--Aml scan WorldCup Device
[23:05:08 300][Global][Inf]--Host: USB xHCI Compliant Host Controller
[23:05:08 300][Global][Inf]--DevPath:\\?\pci#ven_8086&dev_0f35&subsys_0f358086&rev_0f#3&11583659&1&a0#{3abf6f2d-71c4-462a-8a92-1e6861e6af27}
[23:05:08 300][Global][Inf]---->Roothub:USB#ROOT_HUB30#4&39eecd18&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[23:05:08 300][Global][Inf]-------->[Port0]Other device
[23:05:08 300][Global][Inf]-------->[Port1]USB#VID_05E3&PID_0608#5&189fc590&0&2#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[23:05:08 300][Global][Inf]---------->[Port0]\\?\usb#vid_1b8e&pid_c003#6&a149253&0&1#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
[23:05:08 300][Global][Inf]---------->[Port1]NoDeviceConnected
[23:05:08 300][Global][Inf]---------->[Port2]NoDeviceConnected
[23:05:08 300][Global][Inf]---------->[Port3]Other device
[23:05:08 300][Global][Inf]-------->[Port2]NoDeviceConnected
[23:05:08 300][Global][Inf]-------->[Port3]NoDeviceConnected
[23:05:08 300][Global][Inf]-------->[Port4]NoDeviceConnected
[23:05:08 300][Global][Inf]-------->[Port5]NoDeviceConnected
[23:05:08 300][Global][Inf]-------->[Port6]NoDeviceConnected
[23:05:08 300][Global][Inf]--Scan USB host controller complete
[23:05:08 300][Global][Inf]--Update data center with HubMap
[23:05:08 300][Global][Inf]--Update hub2 device data
[23:05:08 300][Global][Inf]--Update HUB2-1 \\?\usb#vid_1b8e&pid_c003#6&a149253&0&1#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
[23:05:08 300][HUB2-1][Inf]--Update device path
[23:05:08 300][Global][Inf]--Update HUB2-2 
[23:05:08 300][HUB2-2][Inf]--Update device path
[23:05:08 300][Global][Inf]--Update HUB2-3 
[23:05:08 300][HUB2-3][Inf]--Update device path
[23:05:08 300][Global][Inf]--Update HUB2-4 
[23:05:08 300][HUB2-4][Inf]--Update device path
[23:05:08 355][HUB2-1][Inf]--Device is connected
[23:05:08 355][HUB2-1][Inf]--Close device handle 0x00000414
[23:05:08 417][HUB2-1][Inf]--Open device handle \\?\usb#vid_1b8e&pid_c003#6&a149253&0&1#{a5dcbf10-6530-11d2-901f-00c04fb951ed}  0x00000450
[23:05:08 481][HUB2-1][Inf]-------------Download DDR.USB-----------
[23:05:08 482][HUB2-1][Inf]--2-2-0-0
[23:05:08 482][HUB2-1][Inf]--Control write pll reg1 0xd9000000:0x000000b1
[23:05:08 991][HUB2-1][Inf]--Control write pll reg1 0xd9000000:0x00005183
[23:05:09 507][HUB2-1][Inf]--Write initial succeed
[23:05:09 507][HUB2-1][Inf]--Upload encrypt at 0xc8100228
[23:05:09 508][HUB2-1][Inf]--ulValue = 0xadfc318c
[23:05:09 508][HUB2-1][Inf]--Read encrypt value succeed
[23:05:09 523][HUB2-1][Inf]--Transfer complete
[23:05:09 525][HUB2-1][Inf]--Run at address 0xd9000000
[23:05:09 525][HUB2-1][Inf]--RunInRam succeed
[23:05:09 548][HUB2-1][Inf]--2-2-0-0
[23:05:09 548][HUB2-1][Inf]--CheckFileRunState succeed
[23:05:09 548][HUB2-1][Inf]--runResult:0x       0,paraMagic:0x7856efab
[23:05:09 548][HUB2-1][Inf]--ddrCapacity:0x     800
[23:05:09 550][HUB2-1][Inf]-------------Download UBOOT.USB-----------
[23:05:09 550][HUB2-1][Inf]--2-2-0-0
[23:05:09 550][HUB2-1][Inf]--ulValue = 0xadfc318c
[23:05:09 550][HUB2-1][Inf]--Download DDR.USB buffer at 0xd9000000
[23:05:09 560][HUB2-1][Inf]--Transfer complete
[23:05:09 560][HUB2-1][Inf]--Download UBOOT.USB buffer at 0x0200c000
[23:05:09 697][HUB2-1][Inf]--Transfer complete
[23:05:09 700][HUB2-1][Inf]--DownCheckPara succeed
[23:05:09 701][HUB2-1][Inf]--Run at address 0xd9000000
[23:05:09 745][HUB2-1][Inf]--ReadCheckPara succeed
[23:05:09 745][HUB2-1][Inf]--Download DDR.USB buffer at 0xd9000000
[23:05:09 757][HUB2-1][Inf]--Transfer complete
[23:05:09 758][HUB2-1][Inf]--DownRunPara succeed
[23:05:09 758][HUB2-1][Inf]--Run at address 0xd9000000
[23:05:11 131][Global][Inf]--Catch DBT_DEVICEREMOVECOMPLETE
[23:05:11 131][Global][Inf]--Scan usb device
[23:05:11 131][Global][Inf]--Aml scan WorldCup Device
[23:05:11 131][Global][Inf]--Host: USB xHCI Compliant Host Controller
[23:05:11 147][Global][Inf]--DevPath:\\?\pci#ven_8086&dev_0f35&subsys_0f358086&rev_0f#3&11583659&1&a0#{3abf6f2d-71c4-462a-8a92-1e6861e6af27}
[23:05:11 147][Global][Inf]---->Roothub:USB#ROOT_HUB30#4&39eecd18&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[23:05:11 147][Global][Inf]-------->[Port0]Other device
[23:05:11 147][Global][Inf]-------->[Port1]USB#VID_05E3&PID_0608#5&189fc590&0&2#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[23:05:11 147][Global][Inf]---------->[Port0]NoDeviceConnected
[23:05:11 147][Global][Inf]---------->[Port1]NoDeviceConnected
[23:05:11 147][Global][Inf]---------->[Port2]NoDeviceConnected
[23:05:11 147][Global][Inf]---------->[Port3]Other device
[23:05:11 147][Global][Inf]-------->[Port2]NoDeviceConnected
[23:05:11 147][Global][Inf]-------->[Port3]NoDeviceConnected
[23:05:11 147][Global][Inf]-------->[Port4]NoDeviceConnected
[23:05:11 147][Global][Inf]-------->[Port5]NoDeviceConnected
[23:05:11 147][Global][Inf]-------->[Port6]NoDeviceConnected
[23:05:11 147][Global][Inf]--Scan USB host controller complete
[23:05:11 147][Global][Inf]--Update data center with HubMap
[23:05:11 147][Global][Inf]--Update hub2 device data
[23:05:11 147][Global][Inf]--Update HUB2-1 
[23:05:11 147][HUB2-1][Inf]--Update device path
[23:05:11 147][Global][Inf]--Update HUB2-2 
[23:05:11 147][HUB2-2][Inf]--Update device path
[23:05:11 147][Global][Inf]--Update HUB2-3 
[23:05:11 147][HUB2-3][Inf]--Update device path
[23:05:11 147][Global][Inf]--Update HUB2-4 
[23:05:11 147][HUB2-4][Inf]--Update device path
[23:05:11 178][HUB2-1][Inf]--Device is removed
[23:05:12 365][Global][Inf]--Catch DBT_DEVICEARRIVAL
[23:05:12 367][Global][Inf]--Scan usb device
[23:05:12 367][Global][Inf]--Aml scan WorldCup Device
[23:05:12 370][Global][Inf]--Host: USB xHCI Compliant Host Controller
[23:05:12 370][Global][Inf]--DevPath:\\?\pci#ven_8086&dev_0f35&subsys_0f358086&rev_0f#3&11583659&1&a0#{3abf6f2d-71c4-462a-8a92-1e6861e6af27}
[23:05:12 370][Global][Inf]---->Roothub:USB#ROOT_HUB30#4&39eecd18&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[23:05:12 372][Global][Inf]-------->[Port0]Other device
[23:05:12 372][Global][Inf]-------->[Port1]USB#VID_05E3&PID_0608#5&189fc590&0&2#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[23:05:12 373][Global][Inf]---------->[Port0]\\?\usb#vid_1b8e&pid_c003#6&a149253&0&1#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
[23:05:12 374][Global][Inf]---------->[Port1]NoDeviceConnected
[23:05:12 374][Global][Inf]---------->[Port2]NoDeviceConnected
[23:05:12 375][Global][Inf]---------->[Port3]Other device
[23:05:12 375][Global][Inf]-------->[Port2]NoDeviceConnected
[23:05:12 375][Global][Inf]-------->[Port3]NoDeviceConnected
[23:05:12 375][Global][Inf]-------->[Port4]NoDeviceConnected
[23:05:12 375][Global][Inf]-------->[Port5]NoDeviceConnected
[23:05:12 375][Global][Inf]-------->[Port6]NoDeviceConnected
[23:05:12 375][Global][Inf]--Scan USB host controller complete
[23:05:12 376][Global][Inf]--Update data center with HubMap
[23:05:12 376][Global][Inf]--Update hub2 device data
[23:05:12 376][Global][Inf]--Update HUB2-1 \\?\usb#vid_1b8e&pid_c003#6&a149253&0&1#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
[23:05:12 376][HUB2-1][Inf]--Update device path
[23:05:12 376][Global][Inf]--Update HUB2-2 
[23:05:12 376][HUB2-2][Inf]--Update device path
[23:05:12 376][Global][Inf]--Update HUB2-3 
[23:05:12 376][HUB2-3][Inf]--Update device path
[23:05:12 376][Global][Inf]--Update HUB2-4 
[23:05:12 376][HUB2-4][Inf]--Update device path
[23:05:12 381][HUB2-1][Inf]--Device is connected
[23:05:12 381][HUB2-1][Inf]--Close device handle 0x00000450
[23:05:12 437][HUB2-1][Inf]--Open device handle \\?\usb#vid_1b8e&pid_c003#6&a149253&0&1#{a5dcbf10-6530-11d2-901f-00c04fb951ed}  0x00000414
[23:05:17 501][HUB2-1][Inf]--0-7-0-16
[23:05:17 501][HUB2-1][Inf]--CheckFileRunState succeed
[23:05:17 501][HUB2-1][Inf]--    low_power
[23:05:17 501][HUB2-1][Inf]--Send command success
[23:05:17 501][HUB2-1][Inf]--Read command status success
[23:05:17 501][HUB2-1][Inf]-------------Download meson1.dtb-----------
[23:05:17 501][HUB2-1][Inf]--0-7-0-16
[23:05:17 516][HUB2-1][Inf]--    download mem dtb normal 21191
[23:05:17 516][HUB2-1][Inf]--Send download command success
[23:05:17 532][HUB2-1][Inf]--Read command status success
[23:05:17 532][HUB2-1][Inf]--Transfer complete
[23:05:17 532][HUB2-1][Inf]--Send download get_status command succeed
[23:05:17 547][HUB2-1][Inf]--get_status success
[23:05:18 063][HUB2-1][Inf]-------------ERASE FLASH-----------
[23:05:18 063][HUB2-1][Inf]--disk_initial 1
[23:05:18 063][HUB2-1][Inf]--Send command success
[23:05:27 099][HUB2-1][Inf]--Read command status success
[23:05:27 099][HUB2-1][Inf]-------------Download logo.PARTITION-----------
[23:05:27 099][HUB2-1][Inf]--0-7-0-16
[23:05:27 099][HUB2-1][Inf]--download store logo normal 4147472
[23:05:27 114][HUB2-1][Inf]--Send download command success
[23:05:27 130][HUB2-1][Inf]--Read command status success
[23:05:27 536][HUB2-1][Inf]--Transfer complete
[23:05:27 536][HUB2-1][Inf]--Send download get_status command succeed
[23:05:27 552][HUB2-1][Inf]--get_status success
[23:05:27 552][HUB2-1][Inf]--verify sha1sum 16b3cc7f3ef4dc8480ffa75d73d7429eda975164
[23:05:27 552][HUB2-1][Inf]--Send verify cmd succeed
[23:05:27 692][HUB2-1][Inf]--Get verify status success
[23:05:28 208][HUB2-1][Inf]-------------Download ramdisk.PARTITION-----------
[23:05:28 208][HUB2-1][Inf]--0-7-0-16
[23:05:28 208][HUB2-1][Inf]--download store ramdisk normal 79695872
[23:05:28 208][HUB2-1][Inf]--Send download command success
[23:05:28 224][HUB2-1][Err]--failed:
[23:05:28 239][HUB2-1][Err]--[0x30402004]UBOOT/Partition ramdisk/Initialize partition/Error result
[23:05:28 239][HUB2-1][Inf]--Close device handle 0x00000414

#66

for the record, here is the content of ~project/images_upgrade/package.conf

# This file define how to pack aml_upgrade_package image

[LIST_NORMAL]
# Images don't need verfiy
file="u-boot.bin.usb.bl2"   main_type="USB"         sub_type="DDR"
file="u-boot.bin.usb.tpl"   main_type="USB"         sub_type="UBOOT"
file="u-boot.bin.sd.bin"    main_type="UBOOT"       sub_type="aml_sdc_burn"
file="platform.conf"        main_type="conf"        sub_type="platform"
file="aml_sdc_burn.ini"     main_type="ini"         sub_type="aml_sdc_burn"
file="kvim.dtb"             main_type="dtb"         sub_type="meson1"

[LIST_VERIFY]
# Images need verify
file="logo.img"            main_type="PARTITION"    sub_type="logo"
file="ramdisk.img"         main_type="PARTITION"    sub_type="ramdisk"
file="rootfs.img"          main_type="PARTITION"    sub_type="rootfs"
file="u-boot.bin"          main_type="PARTITION"    sub_type="bootloader"

I think maybe there are inconsistencies in this file when we want EMMC burning and when ini file is called aml_sdc_burn.ini
and also the dtb file (kvim.dtb) is not the one we prepared before (meson-gxl-s905x-khadas-vim.dtb)


#67

Hi ravelo,

The size of your ramdisk is 79695872 is too large. The default ramdisk partition size is 32MB. So you maybe need to remove some unused modules.

/ {
    partitions: partitions{
        parts = <3>;
        part-0 = <&logo>;
        part-1 = <&ramdisk>;
        part-2 = <&rootfs>;

        logo:logo{
            pname = "logo";
            size = <0x0 0x2000000>;
            mask = <1>;
        };
        ramdisk:ramdisk
        {
            pname = "ramdisk";
            size = <0x0 0x2000000>;
            mask = <1>;
        };
        rootfs:rootfs
        {
            pname = "rootfs";
            size = <0xffffffff 0xffffffff>;
            mask = <4>;
        };
    };
};

Thanks.


#68

I merged morty-next into morty, but now I switched to pyro, and I’ll try to add support for the Khadas u-boot

BTW @gouwa which branch should I use ? what is the difference between Vim and ubuntu ?

Neil


#69

We might rename the branches so many users can easy understand the difference of each:

  • Vim branch: follow the original Amlogic official source code and commit records.
  • ubuntu branch: main for Linux Distro, which may different with Amlogic’s commits

So, if for Linux, would be better with ubuntu branch :slight_smile:


#70

what this actually mean? You are going to add khadas vim to mainline u-boot? I am not quite sure what are these “morty-next” and “pyro” repositorys.


#71

yesterday, I was not aware of pyro and morty,
today I know they are related to Yocto;
the result could be even easier tools to rebuild distros for the VIM (among other popular arm boards)


#72

After some success building and booting kernel 4.12.0 from emmc,
I now try to do the same with 4.12.7, the latest stable


#73

Ok, done !

Ubuntu 16.04.3 LTS ivnVimPro ttyAML0

ivnVimPro login: raxy
Password:
Welcome to Ubuntu 16.04.3 LTS (GNU/Linux 4.12.7 aarch64)

The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.

To run a command as administrator (user “root”), use "sudo ".
See “man sudo_root” for details.

raxy@ivnVimPro:~$ cat /proc/version
Linux version 4.12.7 (raxy@bodhi-giada) (gcc version 4.8.4 (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04.1) ) #1 SMP PREEMPT Mon Aug 14 16:33:07 CEST 2017


#74

some other progress since last time
now ethernet works , so I am able to apt-get dist-upgrade my 4.12.7/16.04.3 system

EDIT1:
bluetooth also works now


#75

And bluetooth keyboard works also now !
:sparkler::tropical_drink::sunglasses::heart_eyes_cat:
see How to use bluetooth keyboard (and mouse) on ubuntu (server and mate)?

USB is not a blocking point anymore to start to use mainline kernels


#76

Sure it is as it is, as it is still not merged. I wrote about this here.


#77

Image Yocto with kernel 4.12 (for S905X). (v20170825)

To download the image. Unzip. To record on the SD card. Rename the /boot partition file of the dtb to the “dtb.img”. To download the script s905_autoscript. Add on the SD card in the /boot partition. On TV Boxing should be informed (with other images) is activated multiboot. Connect the SD card to TV box. To turn the power on. After running the screen is in hibernation (from your watch) for desktop display you have to press a key on the keyboard or moving the mouse.

USB works in the kernel 4.12.9

Source kernel and yocto-proect - Neil Armstrong. :slight_smile:


#78

Cool ! Did you have some problems ?


#79

Yes, there were small problems during make. Had to make some adjustments to the profile of the “meta-meson” to get a working image.

For use with VIM I recommend to use a dtb file from nexbox (available on the website or to use the image A95X). On not clear while to the reason, the dtb file from VIM, dumps the kernel into a panic.