M1 cross-compile u-boot error

Post Reply
b.sullender
Posts: 5
Joined: Tue Jan 16, 2024 7:42 pm
languages_spoken: english
ODROIDs: XU4 and M1
Has thanked: 0
Been thanked: 1 time
Contact:

M1 cross-compile u-boot error

Post by b.sullender »

I'm trying to compile u-boot following the instructions at https://wiki.odroid.com/odroid-m1/softw ... ing_u-boot but when i run the command

Code: Select all

./make.sh odroid_rk3568
i get the errors:

Code: Select all

grep: .config: No such file or directory
./make.sh: line 223: /home/brian/Documents/odroid: No such file or directory
Did i miss something? Anyone else have this issue?

User avatar
tobetter
Posts: 13216
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 1014 times
Been thanked: 2300 times
Contact:

Re: M1 cross-compile u-boot error

Post by tobetter »

grep: .config: No such file or directory error happens at first so it's not an error. But 2nd error does not happen to me even if tried several times in different directory.

b.sullender
Posts: 5
Joined: Tue Jan 16, 2024 7:42 pm
languages_spoken: english
ODROIDs: XU4 and M1
Has thanked: 0
Been thanked: 1 time
Contact:

Re: M1 cross-compile u-boot error

Post by b.sullender »

I think the issue was i didn't actually install `zlib1g:i386`. I had to do the following to install it.

Code: Select all

sudo dpkg --add-architecture i386
Then i had to install an additional package:

Code: Select all

sudo apt install device-tree-compiler
Now it looks like i get binary files, but the output ends with a python2 error. Here's the last bit of output.

Code: Select all

Image Type:   Rockchip RK35 boot image
Init Data Size: 55296 bytes
Boot Data Size: 251904 bytes
Input:
    /home/brian/Documents/odroidm1/u-boot/rkbin/RKBOOT/RK3568-ODROIDM1.ini
    /home/brian/Documents/odroidm1/u-boot/rkbin/bin/rk35/rk3568_ddr_1560MHz_v1.18.bin
    /home/brian/Documents/odroidm1/u-boot/rkbin/../spl/u-boot-spl.bin

Pack rk3568 idblock.bin okay!

ERROR: No python2
Can i ignore this error? If i run

Code: Select all

make all
i don't get any warnings or errors.

User avatar
tobetter
Posts: 13216
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 1014 times
Been thanked: 2300 times
Contact:

Re: M1 cross-compile u-boot error

Post by tobetter »

b.sullender wrote:
Tue May 14, 2024 7:17 am
Now it looks like i get binary files, but the output ends with a python2 error. Here's the last bit of output.

Code: Select all

Image Type:   Rockchip RK35 boot image
Init Data Size: 55296 bytes
Boot Data Size: 251904 bytes
Input:
    /home/brian/Documents/odroidm1/u-boot/rkbin/RKBOOT/RK3568-ODROIDM1.ini
    /home/brian/Documents/odroidm1/u-boot/rkbin/bin/rk35/rk3568_ddr_1560MHz_v1.18.bin
    /home/brian/Documents/odroidm1/u-boot/rkbin/../spl/u-boot-spl.bin

Pack rk3568 idblock.bin okay!

ERROR: No python2
Can i ignore this error? If i run

Code: Select all

make all
i don't get any warnings or errors.
No, you must not. Install Python2 package and try again.
Also make all won't create the binaries.

b.sullender
Posts: 5
Joined: Tue Jan 16, 2024 7:42 pm
languages_spoken: english
ODROIDs: XU4 and M1
Has thanked: 0
Been thanked: 1 time
Contact:

Re: M1 cross-compile u-boot error

Post by b.sullender »

OK, i got it to finish after installing python2. Just as a reference for anyone else having issues, this is the additional steps needed to compile u-boot on Debian 12 (bookworm).
Open /etc/apt/sources.list and add the following to have python2 available.

Code: Select all

deb http://deb.debian.org/debian/ bullseye main
Then run commands:

Code: Select all

sudo dpkg --add-architecture i386
sudo apt update
sudo apt install device-tree-compiler python2
Do all that before following the instructions at:
https://wiki.odroid.com/odroid-m1/softw ... ing_u-boot

Thanks tobetter
These users thanked the author b.sullender for the post:
odroid (Thu May 16, 2024 11:05 am)

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 2 guests