Jump to content
Sign in to follow this  
wahaha

how to build uboot.img, trust.img and flash them onto an empty sd card?

Recommended Posts

I am referring to https://github.com/TinkerBoard-Linux where the newer kernel 5.10 is found.

I want to build the uboot.img and trust.img and flash them onto an empty SD card. meaning, there's no partition on it yet.

How should i do it?

Note: I am familiar with how to build a kernel. but not sure how to flash it onto empty sd card also.

 

I found the partition list here http://opensource.rock-chips.com/wiki_Partitions --> should i just sudo dd and write them into the respective locations and thats it?

Share this post


Link to post
Share on other sites

FYI - I am trying to install Fedora server on the tinkerboard 2s. not debian.

Share this post


Link to post
Share on other sites

hello @wahaha,

to generate uboot.img for sd cards:

1. please compile the .img with command (aka 'the normal way' to compile .imgs) 

./build.sh

2. use sdboot.sh to overwrite the device/rockchip/common/scripts/sdboot.sh in the sources

sdboot.sh can be downloaded here: https://www.asuswebstorage.com/navigate/a/#/s/8D32B97F2E6D428A9344DB456B2CC5464

3. generate sd_uboot.img with command 

sudo ./device/rockchip/common/scripts/sdboot.sh -t uboot

the sd_uboot.img will be located in rockdev directory

4. flash sd_uboot.img to sd card -- you can either use tools like balenaetcher or the sudo dd command

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...