whjwnavy / easyarm_uboot Goto Github PK
View Code? Open in Web Editor NEWEasyArm i.MX280a, u-boot-2020.07, linux-5.5.5
Home Page: http://www.wnavy.com
EasyArm i.MX280a, u-boot-2020.07, linux-5.5.5
Home Page: http://www.wnavy.com
#!/bin/sh
echo "Please input sdcard device name, (e.g. <sdc>)"
read sdcard
if [[ -z "$sdcard" ]]; then
echo "Invalid device name!"
exit 1
fi
fdisk /dev/${sdcard} < fdisk.part
mkfs.fat /dev/${sdcard}2
mkdir /tmp/fat32
mount /dev/${sdcard}2 /tmp/fat32
cp uImage /tmp/fat32/
cp zImage /tmp/fat32/
cp imx28-evk.dtb /tmp/fat32/
umount /tmp/fat32
dd if=u-boot.sd of=/dev/${sdcard}1
dd if=rootfs.full.img of=/dev/${sdcard}3
脚本加一个格式化fat的
还是不能启动。试过格式化为ex4 ex2,还是不能。在uboot里面的part是对的。然后在uboot里面也ls不出rootfs。
zlg@imx280a# mmc dev 0
switch to partitions #0, OK
mmc0 is current device
zlg@imx280a# mmc part
Partition Map for MMC device 0 -- Partition Type: DOS
Part Start Sector Num Sectors UUID Type
1 2048 2048 7e1e25cf-01 53
2 4096 204800 7e1e25cf-02 0b
3 208896 15314944 7e1e25cf-03 10
zlg@imx280a# fatls mmc 0:2
5300984 uImage
5300920 zImage
22122 imx28-evk.dtb
3 file(s), 0 dir(s)
zlg@imx280a# ext4ls mmc 0:3
** Unrecognized filesystem type **
启动错误如下
[ 9.878226] driver: mmcblk
[ 9.885376] b301 1024 mmcblk0p1 7e1e25cf-01
[ 9.885398]
[ 9.892329] b302 102400 mmcblk0p2 7e1e25cf-02
[ 9.892345]
[ 9.899501] b303 7657472 mmcblk0p3 7e1e25cf-03
[ 9.899522]
[ 9.906653] No filesystem could mount root, tried:
[ 9.906675] ext3
[ 9.911631] ext2
[ 9.913829] ext4
[ 9.915841] vfat
[ 9.917834]
[ 9.921355] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,3)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.