平臺
Linux-4.4.4
uboot使用的是友善自帶的(爲了支持uImage和設備樹做了稍許修改)
Overview
這篇博客主要用於匯總一下調試方法。
text
1. dnw下載
目前我將uboot燒寫到SD卡中,然後使用dnw將kernel、根文件系統以及設備樹鏡像下載到內存中,爲了提高效率,可以使用下面的方法:
在uboot中添加環境變量:
setenv dnw_up 'dnw 0x40600000; dnw 0x41000000; dnw 0x42000000; bootm 0x40600000 0x41000000 0x42000000'
進入uboot終端後,執行如下命令:
run dnw_up
然後可以看到如下log:
此時將PC上下載鏡像的命令也弄成腳本:
#!/bin/bash
if [ -e /home/pengdonglin/tiny4412/SysPort/linux-4.4_tiny4412/arch/arm/boot/uImage ];then
sudo dnw /home/pengdonglin/tiny4412/SysPort/linux-4.4_tiny4412/arch/arm/boot/uImage
else
echo "uImage not exist"
exit -1
be
sleep 1
if [ -e /home/pengdonglin/tiny4412/SysPort/rootfs/ramdisk.img ];then
sudo dnw /home/pengdonglin/tiny4412/SysPort/rootfs/ramdisk.img
else
echo "ramdisk.img not exist"
exit -1
be
sleep 1
if [ -e /home/pengdonglin/tiny4412/SysPort/linux-4.4_tiny4412/arch/arm/boot/dts/exynos4412-tiny4412.dtb ];then
sudo dnw /home/pengdonglin/tiny4412/SysPort/linux-4.4_tiny4412/arch/arm/boot/dts/exynos4412-tiny4412.dtb
else
echo "dtb not exist."
exit -1
be
2.
over.
Previous article:Linux kernel transplantation based on tiny4412--device tree expansion
Next article:tiny4412 serial port driver analysis nine --- shell terminal
Recommended ReadingLatest update time:2024-11-16 17:34
- Popular Resources
- Popular amplifiers
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- [NXP Rapid IoT Review] + First Rapid IOT Studio Project
- At 10 am today, Datang NXP will broadcast a live broadcast of [New energy lithium battery management solution with impedance detection function]
- Can anyone help me figure out what chip model this is?
- 【DJI】Automotive Software Engineer Position
- Xianji HPM6750 Review & DIY——RCSN
- How to use freertos to forward the received message content
- A detail of MSP430 interrupt
- How to cope with the new challenges brought by Wi-Fi 6 and Wi-Fi 6E
- 【Beetle ESP32-C3】8. OLED clock and weather assistant (Arduino)
- R7F0C003/004 series, using IAR development environment, are there any tutorials?