U-Boot 2020.10-g92bbb671 (Feb 10 2022 - 02:36:31 +0000)
CPU: Freescale i.MX6ULL rev1.1 792 MHz (running at 396 MHz)
CPU: Industrial temperature grade (-40C to 105C) at 41C
Reset cause: POR
Model: Freescale i.MX6 UltraLiteLite 14x14 EVK Board
Board: MX6ULL 14x14 EVK
DRAM: 512 MiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... OK
In: serial
Out: serial
Err: serial
Net: eth1: ethernet@20b4000 [PRIME]Could not get PHY for FEC0: addr 2
Hit any key to stop autoboot: 0
Unknown command 'lhf' - try 'help'
switch to partitions #0, OK
mmc1(part 0) is current device
loading [mmc 1:1] /uEnv.txt ...
2584 bytes read in 13 ms (193.4 KiB/s)
Importing environment from mmc ...
loading vmlinuz-4.19.35-imx6 ...
10138912 bytes read in 459 ms (21.1 MiB/s)
loading imx6ull-mmc-npi.dtb ...
38529 bytes read in 69 ms (544.9 KiB/s)
5164702 bytes read in 242 ms (20.4 MiB/s)
debug: [console=ttymxc0 root=/dev/mmcblk1p2 rw rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 vt.global_cursor_default=0] ...
debug: [bootz] ...
Kernel image @ 0x80800000 [ 0x000000 - 0x9ab520 ]
## Flattened Device Tree blob at 83000000
Booting using the fdt blob at 0x83000000
Using Device Tree in place at 83000000, end 8303cfff
Starting kernel ...
源码编译
编译工具链
对于 fish 这个 shell,在 ~/.config/fish/config.fish 中保存了配置文件,每次启动时都会执行。等同 ~/.bashrc
if status is-interactive
# Add linaro toolchain only if not exists
if not contains /home/m/ws_linux/gcc/linaro-4.9.4/bin $PATH
set -gx PATH $PATH /home/m/ws_linux/gcc/linaro-4.9.4/bin
end
# Add imxflash only if not exists
if not contains /home/m/ws_linux/imxflash $PATH
set -gx PATH $PATH /home/m/ws_linux/imxflash
end
end
# 清理工程
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- distclean
# 使用默认配置文件配置编译选项
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- mx6ull_14x14_ddr512_emmc_defconfig
# 编译
make V=1 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j12
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j12
sudo apt install -y build-essential libssl-dev bison flex bc
if status is-interactive
# Add linaro toolchain only if not exists
if not contains /home/m/ws_linux/gcc/linaro-4.9.4/bin $PATH
set -gx PATH $PATH /home/m/ws_linux/gcc/linaro-4.9.4/bin
end
# Add imxflash only if not exists
if not contains /home/m/ws_linux/imxflash $PATH
set -gx PATH $PATH /home/m/ws_linux/imxflash
end
end
#!/bin/bash
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- distclean
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- mx6ull_14x14_ddr512_emmc_defconfig
make V=1 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j12