No Console Output from Compiled U-Boot on TWR-VF65GS10 Tower Module

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

No Console Output from Compiled U-Boot on TWR-VF65GS10 Tower Module

Jump to solution
4,949 Views
Rikard1
Contributor II

I have a pre-built image (Factory Starting Point from LinuxLink Timesys) that includes U-Boot and Linux on an SD card, and it boots successfully with console output via a TWR-SER-SCH and RS232-to-FTDI USB adapter connected to the D9 plug on the board. However, when I compile U-Boot from source (using, for example, the v2025.01 branch on GitHub) and write the resulting U-Boot binary (u-boot.imx) to my SD card with:

sudo dd if=u-boot.imx of=/dev/sdc bs=512 seek=2

I get no output on the COM port, regardless of which U-Boot Git tag I compile. None of the compiled images seem to work.

I’m unsure how to get a compiled U-Boot binary to work with the TWR-VF65GS10 Tower Module so that it outputs to the serial terminal. When using the Factory Starting Point image, power is connected through the OpenSDA USB port (J3), but if I connect power via USB to the secondary elevator, there’s no serial output.

 

*************************U-boot Compilation ***************************************************

make CROSS_COMPILE=arm-linux-gnueabihf- distclean

make CROSS_COMPILE=arm-linux-gnueabihf- vf610twr_defconfig

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

 

 

Labels (1)
0 Kudos
Reply
1 Solution
4,903 Views
Rikard1
Contributor II

Hi Pengyong, u-boot is now working. The issue was that somehow dd did not write to offset 0x400 on my sd card. I do not know what the issue with linux dd is, but i am using a usb hub with sd card input connected to host pc running ubuntu on virtualbox vm. i am using windows dd on host pc and verifying with diskgenius that the u-boot.imx is written to offset 0x400 on the sd card. so far i have verified that i can compile an run u-boot up to v2020.04, but it will not work with v2024 and v2025. This is ok and i will just use the latest version that works on my board.

View solution in original post

0 Kudos
Reply
2 Replies
4,905 Views
pengyong_zhang
NXP Employee
NXP Employee

Hi @Rikard1 

what is your SOC type? Please refer the chapter 4.5.12 How to build U-Boot and Kernel in standalone environment. 

B.R

0 Kudos
Reply
4,904 Views
Rikard1
Contributor II

Hi Pengyong, u-boot is now working. The issue was that somehow dd did not write to offset 0x400 on my sd card. I do not know what the issue with linux dd is, but i am using a usb hub with sd card input connected to host pc running ubuntu on virtualbox vm. i am using windows dd on host pc and verifying with diskgenius that the u-boot.imx is written to offset 0x400 on the sd card. so far i have verified that i can compile an run u-boot up to v2020.04, but it will not work with v2024 and v2025. This is ok and i will just use the latest version that works on my board.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2044624%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ENo%20Console%20Output%20from%20Compiled%20U-Boot%20on%20TWR-VF65GS10%20Tower%20Module%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2044624%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20a%20pre-built%20image%20(Factory%20Starting%20Point%20from%20LinuxLink%20Timesys)%20that%20includes%20U-Boot%20and%20Linux%20on%20an%20SD%20card%2C%20and%20it%20boots%20successfully%20with%20console%20output%20via%20a%20TWR-SER-SCH%20and%20RS232-to-FTDI%20USB%20adapter%20connected%20to%20the%20D9%20plug%20on%20the%20board.%20However%2C%20when%20I%20compile%20U-Boot%20from%20source%20(using%2C%20for%20example%2C%20the%20v2025.01%20branch%20on%20GitHub)%20and%20write%20the%20resulting%20U-Boot%20binary%20(u-boot.imx)%20to%20my%20SD%20card%20with%3A%3C%2FP%3E%3CP%3Esudo%20%3CSPAN%20class%3D%22%22%3Edd%3C%2FSPAN%3E%20%3CSPAN%20class%3D%22%22%3Eif%3C%2FSPAN%3E%3Du-boot.imx%20of%3D%2Fdev%2Fsdc%20bs%3D512%20seek%3D2%3C%2FP%3E%3CP%3EI%20get%20no%20output%20on%20the%20COM%20port%2C%20regardless%20of%20which%20U-Boot%20Git%20tag%20I%20compile.%20None%20of%20the%20compiled%20images%20seem%20to%20work.%3C%2FP%3E%3CP%3EI%E2%80%99m%20unsure%20how%20to%20get%20a%20compiled%20U-Boot%20binary%20to%20work%20with%20the%20TWR-VF65GS10%20Tower%20Module%20so%20that%20it%20outputs%20to%20the%20serial%20terminal.%20When%20using%20the%20Factory%20Starting%20Point%20image%2C%20power%20is%20connected%20through%20the%20OpenSDA%20USB%20port%20(J3)%2C%20but%20if%20I%20connect%20power%20via%20USB%20to%20the%20secondary%20elevator%2C%20there%E2%80%99s%20no%20serial%20output.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E*************************U-boot%20Compilation%20***************************************************%3C%2FP%3E%3CP%3Emake%20CROSS_COMPILE%3Darm-linux-gnueabihf-%20distclean%3C%2FP%3E%3CP%3Emake%20CROSS_COMPILE%3Darm-linux-gnueabihf-%20vf610twr_defconfig%3C%2FP%3E%3CP%3Emake%20ARCH%3Darm%20CROSS_COMPILE%3Darm-linux-gnueabihf-%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2044624%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EVF6xx%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2048021%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20No%20Console%20Output%20from%20Compiled%20U-Boot%20on%20TWR-VF65GS10%20Tower%20Module%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2048021%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Pengyong%2C%20u-boot%20is%20now%20working.%20The%20issue%20was%20that%20somehow%20dd%20did%20not%20write%20to%20offset%200x400%20on%20my%20sd%20card.%20I%20do%20not%20know%20what%20the%20issue%20with%20linux%20dd%20is%2C%20but%20i%20am%20using%20a%20usb%20hub%20with%20sd%20card%20input%20connected%20to%20host%20pc%20running%20ubuntu%20on%20virtualbox%20vm.%20i%20am%20using%20windows%20dd%20on%20host%20pc%20and%20verifying%20with%20diskgenius%20that%20the%20u-boot.imx%20is%20written%20to%20offset%200x400%20on%20the%20sd%20card.%20so%20far%20i%20have%20verified%20that%20i%20can%20compile%20an%20run%20u-boot%20up%20to%20v2020.04%2C%20but%20it%20will%20not%20work%20with%20v2024%20and%20v2025.%20This%20is%20ok%20and%20i%20will%20just%20use%20the%20latest%20version%20that%20works%20on%20my%20board.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2046798%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20No%20Console%20Output%20from%20Compiled%20U-Boot%20on%20TWR-VF65GS10%20Tower%20Module%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2046798%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F246871%22%20target%3D%22_blank%22%3E%40Rikard1%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ewhat%20is%20your%20SOC%20type%3F%20Please%20refer%20the%20chapter%204.5.12%26nbsp%3BHow%20to%20build%20U-Boot%20and%20Kernel%20in%20standalone%20environment.%26nbsp%3B%3C%2FP%3E%0A%3CP%3EB.R%3C%2FP%3E%3C%2FLINGO-BODY%3E