Table of contents
1 Download BSP and related documents from the official website
1.2 NXP official uboot and kernel source code download
1.3 Official evaluation board hardware information download
2 Official website SDK download
3 Download and install the cross-compilation tool chain
I bought an IMX6ULL development board and then transplanted uboot and kernel. I didn’t want to directly use the programs that followed the development board. I wanted to do the transplantation work myself based on the official IMX6ULL uboot and kernel, so I first found out how to download these things from the official website. .
1 Download BSP and related documents from the official website
First log in to the official website: Automotive, IoT & Industrial Solutions | NXP Semiconductors
For each chip, NXP will officially design an evaluation board and provide relevant information. Find these relevant information here, click DESIGN on the official website, and then select Development Boards on the left.
Then click on i.MX evaluation board
Then click view all
Then select imx6ull in the picture below: MCIMX6ULL-EVK | i.MX6ULL Evaluation Kit | NXP Semiconductors
1.1 Document download
Select supporting information on the left, and then download the latest docs.
After downloading, unzip it and get
Open i.MX_Linux_Users_Guide.pdf
Here you can see the website to download NXP official uboot.
1.2 NXP official uboot and kernel source code download
From the document we downloaded earlier, we can see the URL for downloading the official source code.
git clone https://github.com/nxp-imx/uboot-imx -b lf_v2022.04
Then let's go to github and search for nxp-imx to have a look
Then search for uboot-imx and you will see
For the same reason, we can also see in the previous PDF document
So we can also find it in the github just now
This is the uboot source code and kernel source code that NXP officially modified for its own evaluation board. When you transplant it yourself, you can modify and transplant it based on this source code.
1.3 Official evaluation board hardware information download
Still in the place where the docs were downloaded just now, look down
Download it and unzip it
You can see the schematic diagram, BOM,
1.4 Official BSP Download
It is still the download page just now, continue to read down, pay attention to download IMX6ULL, the first one on the right is not 6ull.
Then download and unzip.
Then there are some device tree files, kernel and uboot, which should be downloaded directly to the evaluation board. Then I found out why there was no uboot and kernel source code in it, and then I found this file inside. SCR-4.1.15-2.0.3.txt, you can see it when you open it
It's just that the URL here git.freescale.com has expired. Now the new one no longer uses this URL. To download the source code, just go to github and download it according to the previous method.
2 official website SDK download
Find the software on the official website
get
There are too many things on the screen, so I directly entered imx6ull to search: Software | NXP Semiconductors
Download the SDK2.2. After downloading, I found that it is an exe installation package.
install, then get
Inside the boards is the demo code.
In addition, there are some officially written register definition files under this path. When we write code, we can directly copy the .h files here.
3 Download and install the cross-compilation tool chain
First, let’s take a look at the differences between the various cross-compilation tool chains in Jianzhuang above, and then just confirm the three problems of IMX6ULL:
- is 32 bit
- Little endian mode: Since it is little endian mode, we should not use "be" or "eb" when downloading the cross-compilation tool chain.
- If there is an fpu: then we will use the one with hf.
So we download arm-linux-gnueabihf-gcc in a format similar to this, and we go to the linaro official website
then download this
After downloading, unzip it and put it in a certain path, and then add environment variables.
references: