Please correct my steps building custom kernel and deploy to FRWY-LS1012A-PB

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Please correct my steps building custom kernel and deploy to FRWY-LS1012A-PB

1,853 Views
MingYaoChang
Contributor I

Hello all:

  Recently I've struggle developing a new kernel with USB FTDI support. (FRWY-LS1012A-PB)

I followed the guide to build the kernel. It seems like FTDI missed with my new-building kernel.

I followed the guide here : https://docs.nxp.com/bundle/GUID-C3A436DA-E944-4F73-9811-2335DEBD04D6/page/GUID-77D94036-40F3-4A4C-A...

Please check my build steps , git branch and deploy process and point out where I've did wrong.

1. prepare an clean ubuntu 18.04 in Virtual Box, and do sudo apt-install update

2. download flexbuild_lsdk2004.tgz and flexbuild_lsdk2004_update_290520.tgz, and run:

$ tar xvzf flexbuild_lsdk2004.tgz
$ cd ~/Desktop/flexbuild_lsdk2004
$ tar xvzf flexbuild_lsdk2004_update_290520.tgz --strip-components 1 -C ~/Desktop/flexbuild_lsdk2004
$ source setup.env
$ flex-builder -h

  3. prepare kernel:

$ flex-builder -c linux:custom -a arm64     
(this will pop out a config menu, I select Device Driver--> USB support --> USB Serial Converter support --> USB FTDI single Port Serial Driver )
$ flex-builder -c linux -a arm64
(continue to build kernel)

 4. deploy Kernel into board SD card

I need to restart my VM to plug in SD card reader, and my flex-builder setting is lost.

 So I did 

$ cd ~/Desktop/flexbuild_lsdk2004
$ source setup.env 
$ flex-builder -h

 5. proceed to generate boot partition and rootfs:

$ flex-builder -i mkbootpartition -a arm64
$ flex-builder -i merge-component -a arm64
$ flex-builder -i packrfs -a arm64

6. After step 5, I've got : 

bootpartition_LS_arm64_lts_5.4_202009300934.tgz rootfs_lsdk2004_ubuntu_main_arm64_202009301055.tgz

in directory : ~/Desktop/flexbuild_lsdk2004/build/images

7. use command : 

flex-installer -b bootpartition_LS_arm64_lts_5.4_202009300934.tgz -r rootfs_lsdk2004_ubuntu_main_arm64_202009301055.tgz -d /dev/sde

to deploy it to SD card, I've check the SD card section with lsblk, so the deploy target location should be  fine.

After I plug in SD card and rebooting the board, the board get into the kernel successfully , but there's no USB FTDI support.

Any helps would be appreciated, Thanks.

Ming
 

0 Kudos
6 Replies

1,788 Views
MingYaoChang
Contributor I

Hi, Yi ping:

Thank you for your help.

But your link is unreachable....it shows file is missing (404).

Ming

0 Kudos

1,746 Views
yipingwang
NXP TechSupport
NXP TechSupport

I upload my image to google drive

https://drive.google.com/file/d/1FOBBFzdbZ98vUXLW2QNpHG0Uktq959ym/view?usp=sharing

 

Please try it on your target board.

0 Kudos

1,782 Views
MingYaoChang
Contributor I

Hi, Yi ping:

  With all respect, I thank you for your image. But the question is that , even engineers will STRUGGLE at following NXP instructions to build the kernel he want from zero to complete. I think I state my steps very detail (from where the software I got and every command I test) and very easy to reproduce, if there's something wrong, could that be your instruction is not clear , or , wrong command or something else? 
  Again, I appreciate your help, but if the problem remains, this will cause NXP lost potential new coming customers and profits. This is the last reply I post here, and I will keep working on building LS1012A until I figured out what happened(my issue or instructions). 

Ming

   


 

0 Kudos

1,828 Views
yipingwang
NXP TechSupport
NXP TechSupport
 
 
 
 
 
 
Please check whether "CONFIG_USB_SERIAL_FTDI_SIO" is enabled in build/linux/linux/arm64/LS/output/LSDK-20.04-V5.4-update-290520/.config.
 
 
 
 
 
 
 
 
 
On your target board, please execute " zcat /proc/config.gz | grep CONFIG_USB_SERIAL_FTDI_SIO" to check whether CONFIG_USB_SERIAL_FTDI_SIO is enabled.
 
 
 
 
 
 
 
 
 
 
0 Kudos

1,823 Views
MingYaoChang
Contributor I

Hi, Yiping:

  Thanks for your replay.

I checked with your command : zcat /proc/config.gz | grep CONFIG_USB_SERIAL_FTDI_SIO

It turns out that CONFIG_USB_SERIAL_FTDI_SIO  = y.

One strange thing is that my board keeps sending me this message:

[ 16.704036] usb 1-1: hub failed to enable device, error -62
[ 28.991997] xhci-hcd xhci-hcd.0.auto: Error while assigning device slot ID
[ 28.998977] xhci-hcd xhci-hcd.0.auto: Max number of devices this xHCI host supports is 127.
[ 29.012077] usb usb1-port1: couldn't allocate usb_device

Perhaps my usb driver haven't install? I've copied the starting log as below, I didn't see any difference between prebuild images except FTDI part.

My "uname -a" shows "Linux localhost 5.4.3 #2 SMP PREEMPT Tue Oct 6 10:52:02 CST 2020 aarch64 aarch64 aarch64 GNU/Linux"  I think its not kernel's version's problem. 

Any help is appreciated.

Ming

0 Kudos

1,799 Views
yipingwang
NXP TechSupport
NXP TechSupport

I built image with the following command in LSDK 20.04 , and verified it on FRWY-LS1012A target board, I didn't reproduce your problem.

$ flex-builder -c linux:custom -a arm64

Enable CONFIG_USB_SERIAL_FTDI_SIO

$ flex-builder -c linux -a arm64

I uploaded my Image in the following link, you could verify it on your target board.

链接: https://pan.baidu.com/s/1atO8th-naPyS6W6sBIMHsA 提取码: 8ddc 

0 Kudos