1. 下载最新版本 arm linux gcc 7.4.1
cd /usr/local/
wget https://releases.linaro.org/components/toolchain/binaries/7.4-2019.02/arm-linux-gnueabihf/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf.tar.xz
tar xvf gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf.tar.xz
export PATH=/usr/local/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/:$PATH
2. 克隆 u-boot 源码:
git clone https://github.com/u-boot/u-boot.git
3. 编译:
###生成默认配置文件###
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make LicheePi_Zero_defconfig
###编译###
ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- make
离线
离线
晕哥 说:@Hu187 I2C没有测试, USB试了, 改改可以编译成功, 但是仍然用不了。
这是一部分启动日志
[ 0.765594] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.772262] ehci-platform: EHCI generic platform driver
[ 0.777752] ehci-platform 1c1a000.usb: EHCI Host Controller
[ 0.783430] ehci-platform 1c1a000.usb: new USB bus registered, assigned bus number 1
[ 0.791382] ehci-platform 1c1a000.usb: irq 26, io mem 0x01c1a000
[ 0.821152] ehci-platform 1c1a000.usb: USB 2.0 started, EHCI 1.00
[ 0.828151] hub 1-0:1.0: USB hub found
[ 0.832102] hub 1-0:1.0: 1 port detected
[ 0.836562] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 0.842866] ohci-platform: OHCI generic platform driver
[ 0.848378] ohci-platform 1c1a400.usb: Generic Platform OHCI controller
[ 0.855097] ohci-platform 1c1a400.usb: new USB bus registered, assigned bus number 2
[ 0.863024] ohci-platform 1c1a400.usb: irq 27, io mem 0x01c1a400
[ 0.936028] hub 2-0:1.0: USB hub found
[ 0.939876] hub 2-0:1.0: 1 port detected
感觉usb控制器已经被识别了,但我现在进不去系统,也没法细看
这个是 linux 的 usb 日志吧?和uboot没关系
离线
离线
离线