Port Linux Mainline On Khadas VIM


#41

hello,

in fact, i was not trying to build a desktop ubuntu,
but only ubuntu base (from the tarball called ubuntu-base-16.04.2-base-arm64.tar.gz);

the fact is, I noticed that building mainline linux kernel 4.12.0 took longer computer time than building linux 4.9 from khadas repo, and once I deployed the 16.4.2 tarball in the rootfs and did apt-get udate and a few apt-get install on it, the roofs filled up quiclkly up to the initial 500MB size, unlike when using same tarbal w/ kernel 3.14 !

I gonna redo once again and double check the steps, especially when building ramdisk image;


#42

hi @numbqq
please kindly propose also the tutorial to flash the resulting base xenial system to EMMC,
I think you will be more efficient in doing it than less experimented people like me which try to guess from different tutos how to combine all the needed instructions; tks


#43

I DID the whole build process once again, with additional care,
this time i get another error,
please find below the traces from the burn process
can you see anything wrong below ?
tks,

[15:08:21 903][Global][Inf]–Scan usb device
[15:08:21 903][Global][Inf]–Aml scan WorldCup Device
[15:08:21 903][Global][Inf]–Host: USB xHCI Compliant Host Controller
[15:08:21 903][Global][Inf]–DevPath:\?\pci#ven_8086&dev_0f35&subsys_0f358086&rev_0f#3&11583659&1&a0#{3abf6f2d-71c4-462a-8a92-1e6861e6af27}
[15:08:21 903][Global][Inf]---->Roothub:USB#ROOT_HUB30#4&39eecd18&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[15:08:21 919][Global][Inf]-------->[Port0]Other device
[15:08:21 919][Global][Inf]-------->[Port1]USB#VID_05E3&PID_0608#5&189fc590&0&2#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[15:08:21 919][Global][Inf]---------->[Port0]NoDeviceConnected
[15:08:21 919][Global][Inf]---------->[Port1]NoDeviceConnected
[15:08:21 919][Global][Inf]---------->[Port2]NoDeviceConnected
[15:08:21 919][Global][Inf]---------->[Port3]NoDeviceConnected
[15:08:21 919][Global][Inf]-------->[Port2]NoDeviceConnected
[15:08:21 919][Global][Inf]-------->[Port3]NoDeviceConnected
[15:08:21 919][Global][Inf]-------->[Port4]NoDeviceConnected
[15:08:21 919][Global][Inf]-------->[Port5]NoDeviceConnected
[15:08:21 919][Global][Inf]-------->[Port6]NoDeviceConnected
[15:08:21 919][Global][Inf]–Scan USB host controller complete
[15:08:21 919][Global][Inf]–Update data center with HubMap
[15:08:55 095][Global][Inf]–Catch DBT_DEVICEARRIVAL
[15:08:55 095][Global][Inf]–Scan usb device
[15:08:55 095][Global][Inf]–Aml scan WorldCup Device
[15:08:55 095][Global][Inf]–Host: USB xHCI Compliant Host Controller
[15:08:55 095][Global][Inf]–DevPath:\?\pci#ven_8086&dev_0f35&subsys_0f358086&rev_0f#3&11583659&1&a0#{3abf6f2d-71c4-462a-8a92-1e6861e6af27}
[15:08:55 095][Global][Inf]---->Roothub:USB#ROOT_HUB30#4&39eecd18&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[15:08:55 095][Global][Inf]-------->[Port0]Other device
[15:08:55 095][Global][Inf]-------->[Port1]USB#VID_05E3&PID_0608#5&189fc590&0&2#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[15:08:55 095][Global][Inf]---------->[Port0]NoDeviceConnected
[15:08:55 095][Global][Inf]---------->[Port1]NoDeviceConnected
[15:08:55 095][Global][Inf]---------->[Port2]NoDeviceConnected
[15:08:55 095][Global][Inf]---------->[Port3]Other device
[15:08:55 095][Global][Inf]-------->[Port2]NoDeviceConnected
[15:08:55 095][Global][Inf]-------->[Port3]NoDeviceConnected
[15:08:55 095][Global][Inf]-------->[Port4]NoDeviceConnected
[15:08:55 095][Global][Inf]-------->[Port5]NoDeviceConnected
[15:08:55 095][Global][Inf]-------->[Port6]NoDeviceConnected
[15:08:55 095][Global][Inf]–Scan USB host controller complete
[15:08:55 095][Global][Inf]–Update data center with HubMap
[15:16:21 799][Global][Inf]–Catch DBT_DEVICEARRIVAL
[15:16:21 799][Global][Inf]–Scan usb device
[15:16:21 799][Global][Inf]–Aml scan WorldCup Device
[15:16:21 815][Global][Inf]–Host: USB xHCI Compliant Host Controller
[15:16:21 815][Global][Inf]–DevPath:\?\pci#ven_8086&dev_0f35&subsys_0f358086&rev_0f#3&11583659&1&a0#{3abf6f2d-71c4-462a-8a92-1e6861e6af27}
[15:16:21 815][Global][Inf]---->Roothub:USB#ROOT_HUB30#4&39eecd18&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[15:16:21 815][Global][Inf]-------->[Port0]Other device
[15:16:21 815][Global][Inf]-------->[Port1]USB#VID_05E3&PID_0608#5&189fc590&0&2#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[15:16:21 815][Global][Inf]---------->[Port0]NoDeviceConnected
[15:16:21 815][Global][Inf]---------->[Port1]\?\usb#vid_1b8e&pid_c003#6&a149253&0&2#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
[15:16:21 815][Global][Inf]---------->[Port2]NoDeviceConnected
[15:16:21 815][Global][Inf]---------->[Port3]Other device
[15:16:21 815][Global][Inf]-------->[Port2]NoDeviceConnected
[15:16:21 815][Global][Inf]-------->[Port3]NoDeviceConnected
[15:16:21 815][Global][Inf]-------->[Port4]NoDeviceConnected
[15:16:21 815][Global][Inf]-------->[Port5]NoDeviceConnected
[15:16:21 815][Global][Inf]-------->[Port6]NoDeviceConnected
[15:16:21 815][Global][Inf]–Scan USB host controller complete
[15:16:21 815][Global][Inf]–Update data center with HubMap
[15:16:21 815][Global][Inf]–Insert new hub2
[15:16:21 815][Global][Inf]–Update hub2 device data
[15:16:21 815][Global][Inf]–Update HUB2-1
[15:16:21 815][HUB2-1][Inf]–Update device path
[15:16:21 815][Global][Inf]–Update HUB2-2 \?\usb#vid_1b8e&pid_c003#6&a149253&0&2#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
[15:16:21 815][HUB2-2][Inf]–Update device path
[15:16:21 815][Global][Inf]–Begin thread for HUB2-2
[15:16:21 815][Global][Inf]–Burning thread HUB2-2 start
[15:16:21 815][Global][Inf]–Update HUB2-3
[15:16:21 815][HUB2-3][Inf]–Update device path
[15:16:21 815][Global][Inf]–Update HUB2-4
[15:16:21 815][HUB2-4][Inf]–Update device path
[15:16:21 815][Global][Inf]–Burning thread HUB2-2 begin run
[15:16:51 734][Global][Inf]–Parsing burning package
[15:16:51 734][Global][Inf]–Load configuration file C:\Program Files\Amlogic\USB_Burning_Tool\temp
[15:16:51 749][Global][Inf]–Parse burning configuration file C:\Program Files\Amlogic\USB_Burning_Tool\temp\burn_config.xml
[15:16:51 749][Global][Inf]–Get burning key
[15:16:55 585][Global][Inf]–User click start button
[15:16:55 585][Global][Inf]–SetErase
[15:16:55 585][Global][Inf]–Enable burning 1
[15:16:55 585][Global][Inf]–Scan usb device
[15:16:55 585][Global][Inf]–Aml scan WorldCup Device
[15:16:55 585][Global][Inf]–Host: USB xHCI Compliant Host Controller
[15:16:55 585][Global][Inf]–DevPath:\?\pci#ven_8086&dev_0f35&subsys_0f358086&rev_0f#3&11583659&1&a0#{3abf6f2d-71c4-462a-8a92-1e6861e6af27}
[15:16:55 585][Global][Inf]---->Roothub:USB#ROOT_HUB30#4&39eecd18&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[15:16:55 585][Global][Inf]-------->[Port0]Other device
[15:16:55 585][Global][Inf]-------->[Port1]USB#VID_05E3&PID_0608#5&189fc590&0&2#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[15:16:55 585][Global][Inf]---------->[Port0]NoDeviceConnected
[15:16:55 601][HUB2-2][Inf]–Open device handle \?\usb#vid_1b8e&pid_c003#6&a149253&0&2#{a5dcbf10-6530-11d2-901f-00c04fb951ed} 0x00000430
[15:16:55 601][Global][Inf]---------->[Port1]\?\usb#vid_1b8e&pid_c003#6&a149253&0&2#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
[15:16:55 601][Global][Inf]---------->[Port2]NoDeviceConnected
[15:16:55 601][Global][Inf]---------->[Port3]Other device
[15:16:55 601][Global][Inf]-------->[Port2]NoDeviceConnected
[15:16:55 601][Global][Inf]-------->[Port3]NoDeviceConnected
[15:16:55 601][Global][Inf]-------->[Port4]NoDeviceConnected
[15:16:55 601][Global][Inf]-------->[Port5]NoDeviceConnected
[15:16:55 601][Global][Inf]-------->[Port6]NoDeviceConnected
[15:16:55 601][Global][Inf]–Scan USB host controller complete
[15:16:55 601][Global][Inf]–Update data center with HubMap
[15:16:55 601][Global][Inf]–Update hub2 device data
[15:16:55 601][Global][Inf]–Update HUB2-1
[15:16:55 601][HUB2-1][Inf]–Update device path
[15:16:55 601][Global][Inf]–Update HUB2-2 \?\usb#vid_1b8e&pid_c003#6&a149253&0&2#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
[15:16:55 663][HUB2-2][Inf]–CloneImageProxy
[15:16:55 663][HUB2-2][Inf]–Update device path
[15:16:55 663][Global][Inf]–Update HUB2-3
[15:16:55 663][HUB2-3][Inf]–Update device path
[15:16:55 663][Global][Inf]–Update HUB2-4
[15:16:55 663][HUB2-4][Inf]–Update device path
[15:16:55 663][HUB2-2][Inf]–Connect path=USB xHCI Compliant Host Controller/P0/P1/P1
[15:16:55 663][HUB2-2][Inf]–Start burning…
[15:16:55 726][HUB2-2][Inf]--------------ERASE BOOTLOADER------------
[15:16:55 726][HUB2-2][Inf]–0-7-0-16
[15:16:55 726][HUB2-2][Inf]–Identify status success
[15:16:55 726][HUB2-2][Inf]-- low_power
[15:16:55 726][HUB2-2][Inf]–Low power command success
[15:16:55 726][HUB2-2][Inf]–Read low power success
[15:16:55 726][HUB2-2][Inf]–bootloader_is_old
[15:16:55 726][HUB2-2][Inf]–Bootloader command success
[15:16:55 741][HUB2-2][Inf]–Bootloader is old
[15:16:55 741][HUB2-2][Inf]–erase_bootloader
[15:16:55 741][HUB2-2][Inf]–Erase command success
[15:16:55 741][HUB2-2][Inf]–Read erase status success
[15:16:55 741][HUB2-2][Inf]–reset
[15:16:55 741][HUB2-2][Inf]–reset command success
[15:16:56 763][Global][Inf]–Catch DBT_DEVICEREMOVECOMPLETE
[15:16:56 763][Global][Inf]–Scan usb device
[15:16:56 763][Global][Inf]–Aml scan WorldCup Device
[15:16:56 763][Global][Inf]–Host: USB xHCI Compliant Host Controller
[15:16:56 763][Global][Inf]–DevPath:\?\pci#ven_8086&dev_0f35&subsys_0f358086&rev_0f#3&11583659&1&a0#{3abf6f2d-71c4-462a-8a92-1e6861e6af27}
[15:16:56 763][Global][Inf]---->Roothub:USB#ROOT_HUB30#4&39eecd18&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[15:16:56 763][Global][Inf]-------->[Port0]Other device
[15:16:56 763][Global][Inf]-------->[Port1]USB#VID_05E3&PID_0608#5&189fc590&0&2#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[15:16:56 763][Global][Inf]---------->[Port0]NoDeviceConnected
[15:16:56 763][Global][Inf]---------->[Port1]NoDeviceConnected
[15:16:56 763][Global][Inf]---------->[Port2]NoDeviceConnected
[15:16:56 778][Global][Inf]---------->[Port3]Other device
[15:16:56 778][Global][Inf]-------->[Port2]NoDeviceConnected
[15:16:56 778][Global][Inf]-------->[Port3]NoDeviceConnected
[15:16:56 778][Global][Inf]-------->[Port4]NoDeviceConnected
[15:16:56 778][Global][Inf]-------->[Port5]NoDeviceConnected
[15:16:56 778][Global][Inf]-------->[Port6]NoDeviceConnected
[15:16:56 778][Global][Inf]–Scan USB host controller complete
[15:16:56 778][Global][Inf]–Update data center with HubMap
[15:16:56 778][Global][Inf]–Update hub2 device data
[15:16:56 778][Global][Inf]–Update HUB2-1
[15:16:56 778][HUB2-1][Inf]–Update device path
[15:16:56 778][Global][Inf]–Update HUB2-2
[15:16:56 778][HUB2-2][Inf]–Update device path
[15:16:56 778][Global][Inf]–Update HUB2-3
[15:16:56 778][HUB2-3][Inf]–Update device path
[15:16:56 778][Global][Inf]–Update HUB2-4
[15:16:56 778][HUB2-4][Inf]–Update device path
[15:16:56 794][HUB2-2][Inf]–Device is removed
[15:16:58 123][Global][Inf]–Catch DBT_DEVICEARRIVAL
[15:16:58 123][Global][Inf]–Scan usb device
[15:16:58 123][Global][Inf]–Aml scan WorldCup Device
[15:16:58 139][Global][Inf]–Host: USB xHCI Compliant Host Controller
[15:16:58 139][Global][Inf]–DevPath:\?\pci#ven_8086&dev_0f35&subsys_0f358086&rev_0f#3&11583659&1&a0#{3abf6f2d-71c4-462a-8a92-1e6861e6af27}
[15:16:58 139][Global][Inf]---->Roothub:USB#ROOT_HUB30#4&39eecd18&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[15:16:58 139][Global][Inf]-------->[Port0]Other device
[15:16:58 139][Global][Inf]-------->[Port1]USB#VID_05E3&PID_0608#5&189fc590&0&2#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[15:16:58 139][Global][Inf]---------->[Port0]NoDeviceConnected
[15:16:58 139][Global][Inf]---------->[Port1]\?\usb#vid_1b8e&pid_c003#6&a149253&0&2#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
[15:16:58 139][Global][Inf]---------->[Port2]NoDeviceConnected
[15:16:58 139][Global][Inf]---------->[Port3]Other device
[15:16:58 139][Global][Inf]-------->[Port2]NoDeviceConnected
[15:16:58 139][Global][Inf]-------->[Port3]NoDeviceConnected
[15:16:58 139][Global][Inf]-------->[Port4]NoDeviceConnected
[15:16:58 139][Global][Inf]-------->[Port5]NoDeviceConnected
[15:16:58 139][Global][Inf]-------->[Port6]NoDeviceConnected
[15:16:58 139][Global][Inf]–Scan USB host controller complete
[15:16:58 139][Global][Inf]–Update data center with HubMap
[15:16:58 139][Global][Inf]–Update hub2 device data
[15:16:58 139][Global][Inf]–Update HUB2-1
[15:16:58 139][HUB2-1][Inf]–Update device path
[15:16:58 139][Global][Inf]–Update HUB2-2 \?\usb#vid_1b8e&pid_c003#6&a149253&0&2#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
[15:16:58 139][HUB2-2][Inf]–Update device path
[15:16:58 139][Global][Inf]–Update HUB2-3
[15:16:58 139][HUB2-3][Inf]–Update device path
[15:16:58 139][Global][Inf]–Update HUB2-4
[15:16:58 139][HUB2-4][Inf]–Update device path
[15:16:58 155][HUB2-2][Inf]–Device is connected
[15:16:58 155][HUB2-2][Inf]–Close device handle 0x00000430
[15:16:58 217][HUB2-2][Inf]–Open device handle \?\usb#vid_1b8e&pid_c003#6&a149253&0&2#{a5dcbf10-6530-11d2-901f-00c04fb951ed} 0x00000434
[15:16:58 282][HUB2-2][Inf]-------------Download DDR.USB-----------
[15:16:58 282][HUB2-2][Inf]–2-2-0-0
[15:16:58 282][HUB2-2][Inf]–Control write pll reg1 0xd9000000:0x000000b1
[15:16:58 790][HUB2-2][Inf]–Control write pll reg1 0xd9000000:0x00005183
[15:16:59 304][HUB2-2][Inf]–Write initial succeed
[15:16:59 304][HUB2-2][Inf]–Upload encrypt at 0xc8100228
[15:16:59 305][HUB2-2][Inf]–ulValue = 0xadfc318c
[15:16:59 305][HUB2-2][Inf]–Read encrypt value succeed
[15:16:59 320][HUB2-2][Inf]–Transfer complete
[15:16:59 321][HUB2-2][Inf]–Run at address 0xd9000000
[15:16:59 322][HUB2-2][Inf]–RunInRam succeed
[15:16:59 345][HUB2-2][Inf]–2-2-0-0
[15:16:59 345][HUB2-2][Inf]–CheckFileRunState succeed
[15:16:59 346][HUB2-2][Inf]–runResult:0x 0,paraMagic:0x7856efab
[15:16:59 346][HUB2-2][Inf]–ddrCapacity:0x 800
[15:16:59 347][HUB2-2][Inf]-------------Download UBOOT.USB-----------
[15:16:59 347][HUB2-2][Inf]–2-2-0-0
[15:16:59 347][HUB2-2][Inf]–ulValue = 0xadfc318c
[15:16:59 347][HUB2-2][Inf]–Download DDR.USB buffer at 0xd9000000
[15:16:59 357][HUB2-2][Inf]–Transfer complete
[15:16:59 358][HUB2-2][Inf]–Download UBOOT.USB buffer at 0x0200c000
[15:16:59 528][HUB2-2][Inf]–Transfer complete
[15:16:59 538][HUB2-2][Inf]–DownCheckPara succeed
[15:16:59 538][HUB2-2][Inf]–Run at address 0xd9000000
[15:16:59 581][HUB2-2][Inf]–ReadCheckPara succeed
[15:16:59 581][HUB2-2][Inf]–Download DDR.USB buffer at 0xd9000000
[15:16:59 589][HUB2-2][Inf]–Transfer complete
[15:16:59 590][HUB2-2][Inf]–DownRunPara succeed
[15:16:59 590][HUB2-2][Inf]–Run at address 0xd9000000
[15:17:00 965][Global][Inf]–Catch DBT_DEVICEREMOVECOMPLETE
[15:17:00 965][Global][Inf]–Scan usb device
[15:17:00 965][Global][Inf]–Aml scan WorldCup Device
[15:17:00 965][Global][Inf]–Host: USB xHCI Compliant Host Controller
[15:17:00 965][Global][Inf]–DevPath:\?\pci#ven_8086&dev_0f35&subsys_0f358086&rev_0f#3&11583659&1&a0#{3abf6f2d-71c4-462a-8a92-1e6861e6af27}
[15:17:00 965][Global][Inf]---->Roothub:USB#ROOT_HUB30#4&39eecd18&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[15:17:00 980][Global][Inf]-------->[Port0]Other device
[15:17:00 980][Global][Inf]-------->[Port1]USB#VID_05E3&PID_0608#5&189fc590&0&2#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[15:17:00 980][Global][Inf]---------->[Port0]NoDeviceConnected
[15:17:00 980][Global][Inf]---------->[Port1]NoDeviceConnected
[15:17:00 980][Global][Inf]---------->[Port2]NoDeviceConnected
[15:17:00 980][Global][Inf]---------->[Port3]Other device
[15:17:00 980][Global][Inf]-------->[Port2]NoDeviceConnected
[15:17:00 980][Global][Inf]-------->[Port3]NoDeviceConnected
[15:17:00 980][Global][Inf]-------->[Port4]NoDeviceConnected
[15:17:00 980][Global][Inf]-------->[Port5]NoDeviceConnected
[15:17:00 980][Global][Inf]-------->[Port6]NoDeviceConnected
[15:17:00 980][Global][Inf]–Scan USB host controller complete
[15:17:00 980][Global][Inf]–Update data center with HubMap
[15:17:00 980][Global][Inf]–Update hub2 device data
[15:17:00 980][Global][Inf]–Update HUB2-1
[15:17:00 980][HUB2-1][Inf]–Update device path
[15:17:00 980][Global][Inf]–Update HUB2-2
[15:17:00 980][HUB2-2][Inf]–Update device path
[15:17:00 980][Global][Inf]–Update HUB2-3
[15:17:00 980][HUB2-3][Inf]–Update device path
[15:17:00 980][Global][Inf]–Update HUB2-4
[15:17:00 980][HUB2-4][Inf]–Update device path
[15:17:01 043][HUB2-2][Inf]–Device is removed
[15:17:02 190][Global][Inf]–Catch DBT_DEVICEARRIVAL
[15:17:02 190][Global][Inf]–Scan usb device
[15:17:02 190][Global][Inf]–Aml scan WorldCup Device
[15:17:02 193][Global][Inf]–Host: USB xHCI Compliant Host Controller
[15:17:02 193][Global][Inf]–DevPath:\?\pci#ven_8086&dev_0f35&subsys_0f358086&rev_0f#3&11583659&1&a0#{3abf6f2d-71c4-462a-8a92-1e6861e6af27}
[15:17:02 194][Global][Inf]---->Roothub:USB#ROOT_HUB30#4&39eecd18&0&0#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[15:17:02 195][Global][Inf]-------->[Port0]Other device
[15:17:02 196][Global][Inf]-------->[Port1]USB#VID_05E3&PID_0608#5&189fc590&0&2#{f18a0e88-c30c-11d0-8815-00a0c906bed8}
[15:17:02 196][Global][Inf]---------->[Port0]NoDeviceConnected
[15:17:02 197][Global][Inf]---------->[Port1]\?\usb#vid_1b8e&pid_c003#6&a149253&0&2#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
[15:17:02 197][Global][Inf]---------->[Port2]NoDeviceConnected
[15:17:02 199][Global][Inf]---------->[Port3]Other device
[15:17:02 199][Global][Inf]-------->[Port2]NoDeviceConnected
[15:17:02 199][Global][Inf]-------->[Port3]NoDeviceConnected
[15:17:02 199][Global][Inf]-------->[Port4]NoDeviceConnected
[15:17:02 199][Global][Inf]-------->[Port5]NoDeviceConnected
[15:17:02 199][Global][Inf]-------->[Port6]NoDeviceConnected
[15:17:02 199][Global][Inf]–Scan USB host controller complete
[15:17:02 199][Global][Inf]–Update data center with HubMap
[15:17:02 199][Global][Inf]–Update hub2 device data
[15:17:02 199][Global][Inf]–Update HUB2-1
[15:17:02 199][HUB2-1][Inf]–Update device path
[15:17:02 200][Global][Inf]–Update HUB2-2 \?\usb#vid_1b8e&pid_c003#6&a149253&0&2#{a5dcbf10-6530-11d2-901f-00c04fb951ed}
[15:17:02 200][HUB2-2][Inf]–Update device path
[15:17:02 200][Global][Inf]–Update HUB2-3
[15:17:02 200][HUB2-3][Inf]–Update device path
[15:17:02 200][Global][Inf]–Update HUB2-4
[15:17:02 200][HUB2-4][Inf]–Update device path
[15:17:02 251][HUB2-2][Inf]–Device is connected
[15:17:02 251][HUB2-2][Inf]–Close device handle 0x00000434
[15:17:02 316][HUB2-2][Inf]–Open device handle \?\usb#vid_1b8e&pid_c003#6&a149253&0&2#{a5dcbf10-6530-11d2-901f-00c04fb951ed} 0x00000434
[15:17:07 384][HUB2-2][Inf]–0-7-0-16
[15:17:07 384][HUB2-2][Inf]–CheckFileRunState succeed
[15:17:07 384][HUB2-2][Inf]-- low_power
[15:17:07 384][HUB2-2][Inf]–Send command success
[15:17:07 384][HUB2-2][Inf]–Read command status success
[15:17:07 384][HUB2-2][Inf]-------------Download meson1.dtb-----------
[15:17:07 384][HUB2-2][Inf]–0-7-0-16
[15:17:07 400][HUB2-2][Inf]-- download mem dtb normal 20762
[15:17:07 400][HUB2-2][Inf]–Send download command success
[15:17:07 416][HUB2-2][Inf]–Read command status success
[15:17:07 416][HUB2-2][Inf]–Transfer complete
[15:17:07 416][HUB2-2][Inf]–Send download get_status command succeed
[15:17:07 431][HUB2-2][Inf]–get_status success
[15:17:07 947][HUB2-2][Inf]-------------ERASE FLASH-----------
[15:17:07 947][HUB2-2][Inf]–disk_initial 1
[15:17:07 947][HUB2-2][Inf]–Send command success
[15:17:07 962][HUB2-2][Err]–failed:[15:17:07 962][HUB2-2][Err]–Check command return failed
[15:17:07 978][HUB2-2][Err]–[0x30201004]UBOOT/Disk initialize/Send command/Error result
[15:17:07 978][HUB2-2][Inf]–Close device handle 0x00000434


#44

Hi ravelo,

In order to flash image to emmc you may need to do more work. You need to add emmc partitions.In [this] (Ubuntu server ROM linux mainline V170624 pre-alpha version[EMMC INSTALLATION]) tutorial I just porting emmc partitions from Amlogic linux 4.9.


#45

hi @numbqq,
I wonder how you did to “port” emmc partitions.
In mainline source tree for 4.12, there is no such folder as drivers/amlogic/
So, should I just complement my 4.12 mainline cloned source tree with https://github.com/khadas/linux/tree/ubuntu-4.9/drivers/amlogic ?
tks


#46

Hi ravelo,

Here is the emmc partitions patch. Note that this patch is based on 4.12-rc6 and I have not test it on 4.12 yet.

Thanks.


#47

Hi @Gouwa
how to do that in below step 4 which is "backup and tarball the rootfs with desktop environment " ?
thanks!


#48

hello, I think I have issues applying your patchfile,

here are the logs when I test it, plese kindly check what could be wrong.
Tks.


me@bodhi-DELL-T3400:~/project/khadas/ubuntu/linux$ patch --dry-run < ~/Downloads/0001-EMMC-add-EMMC-partitions-porting-from-amlogic-linux-.patch

can't find file to patch at input line 65
Perhaps you should have used the -p or --strip option?
The text leading up to this was:

|From 3e80c0fde99b27f678dd264061f158b2bcbfa11c Mon Sep 17 00:00:00 2001
|From: nick <nick@khadas.com>
|Date: Thu, 22 Jun 2017 18:00:56 +0800
|Subject: [PATCH 1/6] EMMC: add EMMC partitions (porting from amlogic linux
| 4.9.26)
|
|---
| .../dts/amlogic/meson-gxl-s905x-khadas-vim.dts     |    1 +
| arch/arm64/boot/dts/amlogic/partitions.dtsi        |   44 +
| arch/arm64/configs/kvim_defconfig                  |    4 +
| drivers/Kconfig                                    |    2 +
| drivers/Makefile                                   |    1 +
| drivers/amlogic/Kconfig                            |   30 +
| drivers/amlogic/Makefile                           |    5 +
| drivers/amlogic/iomap/Kconfig                      |    7 +
| drivers/amlogic/iomap/Makefile                     |    1 +
| drivers/amlogic/iomap/iomap.c                      |  270 ++
| drivers/amlogic/mmc/Kconfig                        |   30 +
| drivers/amlogic/mmc/Makefile                       |    7 +
| drivers/amlogic/mmc/aml_sd_emmc.c                  | 2934 ++++++++++++++++++++
| drivers/amlogic/mmc/aml_sdhc_m8.c                  | 2477 +++++++++++++++++
| drivers/amlogic/mmc/aml_sdio.c                     | 1367 +++++++++
| drivers/amlogic/mmc/amlsd.c                        |  853 ++++++
| drivers/amlogic/mmc/amlsd_of.c                     |  216 ++
| drivers/amlogic/mmc/emmc_key.c                     |  213 ++
| drivers/amlogic/mmc/emmc_key.h                     |   74 +
| drivers/amlogic/mmc/emmc_partitions.c              | 1018 +++++++
| drivers/mmc/core/block.c                           |   10 +
| include/linux/amlogic/amlsd.h                      |  239 ++
| include/linux/amlogic/cpu_version.h                |  144 +
| include/linux/amlogic/iomap.h                      |   83 +
| include/linux/amlogic/key_manage.h                 |   37 +
| include/linux/amlogic/sd.h                         | 1514 ++++++++++
| include/linux/mmc/card.h                           |   26 +
| include/linux/mmc/emmc_partitions.h                |   78 +
| include/linux/mmc/host.h                           |    6 +
| 29 files changed, 11691 insertions(+)
| create mode 100644 arch/arm64/boot/dts/amlogic/partitions.dtsi
| create mode 100644 drivers/amlogic/Kconfig
| create mode 100644 drivers/amlogic/Makefile
| create mode 100644 drivers/amlogic/iomap/Kconfig
| create mode 100644 drivers/amlogic/iomap/Makefile
| create mode 100644 drivers/amlogic/iomap/iomap.c
| create mode 100644 drivers/amlogic/mmc/Kconfig
| create mode 100644 drivers/amlogic/mmc/Makefile
| create mode 100644 drivers/amlogic/mmc/aml_sd_emmc.c
| create mode 100644 drivers/amlogic/mmc/aml_sdhc_m8.c
| create mode 100644 drivers/amlogic/mmc/aml_sdio.c
| create mode 100644 drivers/amlogic/mmc/amlsd.c
| create mode 100644 drivers/amlogic/mmc/amlsd_of.c
| create mode 100644 drivers/amlogic/mmc/emmc_key.c
| create mode 100644 drivers/amlogic/mmc/emmc_key.h
| create mode 100644 drivers/amlogic/mmc/emmc_partitions.c
| create mode 100644 include/linux/amlogic/amlsd.h
| create mode 100644 include/linux/amlogic/cpu_version.h
| create mode 100644 include/linux/amlogic/iomap.h
| create mode 100644 include/linux/amlogic/key_manage.h
| create mode 100644 include/linux/amlogic/sd.h
| create mode 100644 include/linux/mmc/emmc_partitions.h
|
|diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts
|index 329fe71..5df1dbc 100644
|--- a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts
|+++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-khadas-vim.dts
--------------------------
File to patch: ^C

#49

Hi ravelo,

You may try the following command:

nick@Nick:~/project/khadas/ubuntu/linux$ git am 0001-EMMC-add-EMMC-partitions-porting-from-amlogic-linux-.patch

Thanks.


#51

Can someone who have Network problems test the v4.13-rc1 plus this patch.


#52

I failed when I try as you proposed… please see the log below

a179945@bodhi-DELL-T3400:~/project/khadas/ubuntu/linux$ git am ~/Downloads/0001-EMMC-add-EMMC-partitions-porting-from-amlogic-linux-.patch
Applying: EMMC: add EMMC partitions (porting from amlogic linux 4.9.26)
/home/a179945/project/khadas/ubuntu/linux/.git/rebase-apply/patch:181: trailing whitespace.
source "drivers/amlogic/iomap/Kconfig" 
/home/a179945/project/khadas/ubuntu/linux/.git/rebase-apply/patch:9674: trailing whitespace.

/home/a179945/project/khadas/ubuntu/linux/.git/rebase-apply/patch:11956: trailing whitespace.
#endif 
error: arch/arm64/configs/kvim_defconfig: does not exist in index
error: patch failed: drivers/Makefile:181
error: drivers/Makefile: patch does not apply
/home/a179945/project/khadas/ubuntu/linux/.git/rebase-apply/patch:3484: new blank line at EOF.
+
/home/a179945/project/khadas/ubuntu/linux/.git/rebase-apply/patch:7340: new blank line at EOF.
+
Patch failed at 0001 EMMC: add EMMC partitions (porting from amlogic linux 4.9.26)
The copy of the patch that failed is found in:
   /home/a179945/project/khadas/ubuntu/linux/.git/rebase-apply/patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

#53

This patch improves the situation, git clone …/linux stalls at 70% (compared to 30% with v4.12.0).


#54

not sure if it helps for you but
amlogic,tx-delay-ns = <4>;
in dts helped for me on gxbb-p200
also I used to tweak ethtool rx-usecs tx-usecs rx-frames tx-frames but I no longer do so.


#55

Hi ravelo,

It seems that kvim_defconfig does not exist.
Please use this patchset and try the following commands:

nick@Nick:~/project/khadas/ubuntu/linux$ git am 0001-CONFIG-add-kvim_defconfig-from-defconfig-for-VIM.patch
nick@Nick:~/project/khadas/ubuntu/linux$ git am 0002-CONFIG-config-wifi-ethmac.patch
nick@Nick:~/project/khadas/ubuntu/linux$ git am 0003-DTS-disable-scpi_clocks.patch
nick@Nick:~/project/khadas/ubuntu/linux$ git am 0004-EMMC-add-EMMC-partitions-porting-from-amlogic-linux-.patch

Thanks.


#56

@numbqq why do you disable scpi_clocks (i asked this three time already)?


#57

Hi @vrabac

You can refer to this about why I disable scpi_clocks.I just test 4.12-rc6 and found this issue.And it has gone with 4.12.

Thanks.


#58

hello

thanks;
the 3 first patches seem to apply correclty,
but the 0004 fails !
please kindly find below the traces…

a179945@bodhi-DELL-T3400:~/project/khadas/ubuntu/linux/arch/arm64/configs$ git am --abort
a179945@bodhi-DELL-T3400:~/project/khadas/ubuntu/linux/arch/arm64/configs$ git am ~/Downloads/patches/0001-CONFIG-add-kvim_defconfig-from-defconfig-for-VIM.patch
Applying: CONFIG: add kvim_defconfig(from defconfig) for VIM
a179945@bodhi-DELL-T3400:~/project/khadas/ubuntu/linux/arch/arm64/configs$ git am ~/Downloads/patches/0002-CONFIG-config-wifi-ethmac.patch
Applying: CONFIG: config wifi & ethmac
a179945@bodhi-DELL-T3400:~/project/khadas/ubuntu/linux/arch/arm64/configs$ git am ~/Downloads/patches/0003-DTS-disable-scpi_clocks.patch
Applying: DTS: disable scpi_clocks
a179945@bodhi-DELL-T3400:~/project/khadas/ubuntu/linux/arch/arm64/configs$ git am ~/Downloads/patches/0004-EMMC-add-EMMC-partitions-porting-from-amlogic-linux-.patch
Applying: EMMC: add EMMC partitions (porting from amlogic linux 4.9.26)
/home/a179945/project/khadas/ubuntu/linux/.git/rebase-apply/patch:181: trailing whitespace.
source "drivers/amlogic/iomap/Kconfig" 
/home/a179945/project/khadas/ubuntu/linux/.git/rebase-apply/patch:9674: trailing whitespace.

/home/a179945/project/khadas/ubuntu/linux/.git/rebase-apply/patch:11956: trailing whitespace.
#endif 
error: patch failed: drivers/Makefile:181
error: drivers/Makefile: patch does not apply
/home/a179945/project/khadas/ubuntu/linux/.git/rebase-apply/patch:3484: new blank line at EOF.
+
/home/a179945/project/khadas/ubuntu/linux/.git/rebase-apply/patch:7340: new blank line at EOF.
+
Patch failed at 0001 EMMC: add EMMC partitions (porting from amlogic linux 4.9.26)
The copy of the patch that failed is found in:
   /home/a179945/project/khadas/ubuntu/linux/.git/rebase-apply/patch
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".

#59

Ok then please don’t use or provide such patch in patchset for other if this got fixed with 4.12-final. If it occurs again, please provide crash/backtrace to mailing list.

As less as possible out of three patches please.


#60

Hi @ravelo,

The patches are based on 4.12-rc6,maybe a little different from 4.12.And you can fixup it manually.

###Modify 0004-EMMC-add-EMMC-partitions-porting-from-amlogic-linux-.patch

diff --git a/0004-EMMC-add-EMMC-partitions-porting-from-amlogic-linux-.patch b/0004-EMMC-add-EMMC-partitions-porting-from-amlogic-linux-.patch
index 0c60720..af2deba 100644
--- a/0004-EMMC-add-EMMC-partitions-porting-from-amlogic-linux-.patch
+++ b/0004-EMMC-add-EMMC-partitions-porting-from-amlogic-linux-.patch
@@ -9,7 +9,6 @@ Subject: [PATCH 4/9] EMMC: add EMMC partitions (porting from amlogic linux
  arch/arm64/boot/dts/amlogic/partitions.dtsi        |   44 +
  arch/arm64/configs/kvim_defconfig                  |    4 +
  drivers/Kconfig                                    |    2 +
- drivers/Makefile                                   |    1 +
  drivers/amlogic/Kconfig                            |   30 +
  drivers/amlogic/Makefile                           |    5 +
  drivers/amlogic/iomap/Kconfig                      |    7 +
@@ -147,15 +146,6 @@ index ba2901e..44582e5 100644
  source "drivers/amba/Kconfig"
  
  source "drivers/base/Kconfig"
-diff --git a/drivers/Makefile b/drivers/Makefile
-index cfabd14..8310687 100644
---- a/drivers/Makefile
-+++ b/drivers/Makefile
-@@ -181,3 +181,4 @@ obj-$(CONFIG_NVMEM)                += nvmem/
- obj-$(CONFIG_FPGA)            += fpga/
- obj-$(CONFIG_FSI)             += fsi/
- obj-$(CONFIG_TEE)             += tee/
-+obj-$(CONFIG_AMLOGIC_DRIVER)    += amlogic/
 diff --git a/drivers/amlogic/Kconfig b/drivers/amlogic/Kconfig
 new file mode 100644
 index 0000000..24e0724

You can refer here for the modified patch.

###Apply 0004-EMMC-add-EMMC-partitions-porting-from-amlogic-linux-.patch

nick@Nick:~/project/khadas/ubuntu/linux$ git am 0004-EMMC-add-EMMC-partitions-porting-from-amlogic-linux-.patch

###Patch drivers/Makefile manually

diff --git a/drivers/Makefile b/drivers/Makefile
index dfdcda0..ec2731d 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -182,3 +182,4 @@ obj-$(CONFIG_FPGA)          += fpga/
 obj-$(CONFIG_FSI)              += fsi/
 obj-$(CONFIG_TEE)              += tee/
 obj-$(CONFIG_MULTIPLEXER)      += mux/
+obj-$(CONFIG_AMLOGIC_DRIVER)    += amlogic/

Thanks.


#61

Hi vrabac,

Thanks for your suggestion!