English 中文(简体)
在 Rpi4-8gb 中, 当我尝试在 Debian-12 64 位中更改 bcm2711-rpi-4- b.dtb 时
原标题:issue in Rpi4-8gb When I try change bcm2711-rpi-4-b.dtb in Debian-12 64 bits
This bounty has ended. Answers to this question are eligible for a +50 reputation bounty. Bounty grace period ends in 22 hours. neuberfran is looking for a more detailed answer to this question: I need anyone tô solve my issue. If the person has an rpi4 with an SD card available. Otherwise (and in addition) it can be using an overlay (dtbo) file but with U-boot this is much more difficult neuberfran@raspberrypi:~$ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 12 (bookworm) Release: 12 Codename: bookworm neuberfran@raspberrypi:~$ arch aarch64 neuberfran@raspberrypi:~$ uname -a Linux raspberrypi 6.6.20+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.20-1+rpt1 (2024-03-07) aarch64 GNU/Linux neuberfran@raspberrypi:~$ uname -m aarch64 U-Boot> printenv bootcmd bootcmd=fatload mmc 0 ${kernel_addr_r} kernel8.img;fatload mmc 0 ${fdt_addr} ${fdtfile}; booti ${kernel_addr_r} - ${fdt_addr} I have rpi4 with debian 12 (as above) and I m trying to change bcm2711-rpi-4-b.dtb, starting with the commands below: mkdir rasp_arm64 cd rasp_arm64/ git clone --depth=1 https://github.com/raspberrypi/linux sudo apt-get install qemu-system-arm sudo apt-get install lzop sudo apt-get install gcc-aarch64-linux-gnu cd linux/ make -j8 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- mrproper make -j8 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- bcm2711_defconfig make -j8 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- Image modules dtbs make -j8 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- dtbs ls -lha arch/arm64/boot/dts/broadcom/bcm2711-rpi-4-b.dtb -rw-rw-r-- 1 neuuberfran neuuberfran 55K Jul 12 13:02 arch/arm64/boot/dts/broadcom/bcm2711-rpi-4-b.dtb config.txt (file) enable_uart=1 kernel=u-boot.bin arm_64bit=1 git branch master * my6.6.20 Issue I m having, right in U-boot, described below: 2024.04-rc4-0004 0-gbd0aedde3e-dirty (Mar 23 2024 - 10:37:01 -0300) DRAM: 948 MiB (effective 7.9 GiB) RPI 4 Model B (0xd03115) Core: 210 devices, 15 uclasses, devicetree: board MMC: mmcnr@7e300000: 1, mmc@7e340000: 0 Loading Environment from FAT... OK In: serial,usbkbd Out: serial,vidconsole Err: serial,vidconsole Net: eth0: ethernet@7d580000 starting USB... No working controllers found Hit any key to stop autoboot: 0 9259827 bytes read in 413 ms (21.4 MiB/s) Failed to load broadcom/bcm2711-rpi-4-b.dtb Uncompressing Kernel Image to 0 Moving Image from 0x80000 to 0x200000, end=1b60000 ERROR: Did not find a cmdline Flattened Device Tree Could not find a valid device tree Note.: https://forums.raspberrypi.com/viewtopic.php?t=314845 Similar issue, but in CM4 module Can anyone help-me?
问题回答
First of all, to resolve my issue I recreated an image (with SSH, Wifi, etc) for my rpi4 8gb, using Imager App (version 1.8.5) on Ubuntu 20.04: https://hechao.li/2021/12/20/Boot-Raspberry-Pi-4-Using-uboot-and-Initramfs/ Then, based on the website above, I created U-boot 2024.04 and boot.scr (specifically) as below: cat << EOF > boot_cmd.txt fatload mmc 0:1 ${kernel_addr_r} Image setenv bootargs "8250.nr_uarts=1 console=ttyS0,115200 root=/dev/mmcblk0p2 rootwait rw" booti ${kernel_addr_r} - ${fdt_addr} EOF ~/u-boot/tools/mkimage -A arm64 -O linux -T script -C none -d boot_cmd.txt boot.scr config.txt (I don`t need more cmdline.txt, I delete it) 1.enable_uart=1 2.arm_64bit=1 3.kernel=u-boot.bin 4.#dtoverlay=disable-bt I put files: config.txt, bcm2711-rpi-4-b.dtb (already with the necessary changes for RPMsg), Image, boot.scr and u-boot.bin in bootfs partition. I insert sdcard in rpi4 8gb and access it using sudo picocom -b 115200 /dev/ttyUSB0:




相关问题
Difference between embedded linux and moblin,openmoko linux

I am having an handheld device with ARM platform. I planning to load OS into it. So which OS I should go for ? (Embedded linux or Moblin like any other flavour). Actually I want to know the difference ...

How to implement websockets on an embedded device server?

I am working with an electronics appliance manufacturer to embed LAN based control systems into the products. The idea is to serve up a system configuration/control interface through a web browser so ...

Loading an image in Java without AWT

I am on an embedded platform without access to AWT. I was wondering if anyone knew of a standalone library to load images without any AWT involvement. Thanks, Braden McDorman

Can I set the Linux SIGUSR1 from within the kernel?

I might be approaching this all wrong but... I have a linux kernel device driver that handles an external interrupt and currently performs a printk() when it occurs. What I would like to do is ...

USB Port Speed Linux [closed]

How to programatically determine the usb port speed in embedded devices running the Linux kernel?

What is the easiest x86 Embedded Linux? [closed]

I want to play around with some embedded linux. I want it to be able to run on an x86 processor (for start, it will be running on my regular PC). I have looked online, but the ones I have found seem ...

热门标签