这个帖子我反复操作实践了很长时间才搞定, 现在大大方便了Linux kernel/dtb/rootfs/app 的调试
这个帖子我反复操作实践了很长时间才搞定, 现在大大方便了Linux kernel/dtb/rootfs/app 的调试
这个帖子我反复操作实践了很长时间才搞定, 现在大大方便了Linux kernel/dtb/rootfs/app 的调试
参考: http://linux-sunxi.org/Initial_Ramdisk
run.bat 文件内容:
"bin\sunxi-fel.exe" -p uboot u-boot-sunxi-with-spl.bin write 0x41000000 zImage write 0x41800000 sun8i-v3s-licheepi-zero-dock.dtb write 0x41900000 boot_fel_initrd.scr write 0x41A00000 rootfs.cpio.gz.uImage
@echo "download complete! now run linux ..."
@sleep 5
在线
使用最新的 u-boot: 编译 V3s 2019 版本的 u-boot
(文件已经在一楼附件内)
2019-05-08 更新:
---------------------------------
mkimage -C none -A arm -T script -d boot.cmd boot.scr
用这个命令生成 scr 文件
在线
参考: https://whycan.cn/t_444.html
sunxi-fel 需要修改fel.c
#define SPL_MAX_VERSION 2 /* maximum supported version */
改为 3:
#define SPL_MAX_VERSION 3 /* maximum supported version */
然后重新编译, 否则 sunxi-fel 不会解析传递 scr 环境变量参数给 u-boot.
(文件已经在一楼附件内)
在线
Linux zero-4.13.y 和 buildroot 编译参考这个: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)
文件系统打包成 initramfs:
cd /opt/buildroot-2018.08.2/output/target
find . | cpio -o -Hnewc |gzip -9 > ../rootfs.cpio.gz
mkimage -A arm -T ramdisk -C none -n uInitrd -d ../rootfs.cpio.gz /var/www/html/rootfs.cpio.gz.uImage
mkimage -A arm -T ramdisk -C none -n uInitrd -d ../rootfs.cpio.gz ../rootfs.cpio.gz.uImage
(文件已经在一楼附件内)
在线
顶起,更新系统方便,大大的赞!
离线
顶起,调试烧录更方便了
离线
真的方便
离线
Linux zero-4.13.y 和 buildroot 编译参考这个: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)
文件系统打包成 initramfs:
cd /opt/buildroot-2018.08.2/output/target
find . | cpio -o -Hnewc |gzip -9 > ../rootfs.cpio.gz
mkimage -A arm -T ramdisk -C none -n uInitrd -d ../rootfs.cpio.gz ../rootfs.cpio.gz.uImage
(文件已经在一楼附件内)
uboot命令的SCR文件是怎么生成的?
离线
在线
Linux zero-4.13.y 和 buildroot 编译参考这个: 荔枝派Zero V3s开发板入坑记录 (TF/SD卡启动)(主线Linux,主线u-boot)
文件系统打包成 initramfs:
cd /opt/buildroot-2018.08.2/output/target
find . | cpio -o -Hnewc |gzip -9 > ../rootfs.cpio.gz
mkimage -A arm -T ramdisk -C none -n uInitrd -d ../rootfs.cpio.gz /var/www/html/rootfs.cpio.gz.uImage
mkimage -A arm -T ramdisk -C none -n uInitrd -d ../rootfs.cpio.gz ../rootfs.cpio.gz.uImage
(文件已经在一楼附件内)
请教一下晕哥 f1c100s initramfs制作是直接在buildroot中file system勾选 cpio 以及uboot image,然后是在buildroot system configure里面在/dev management里面要选上mdev,是吗?
这种和引用的这种用命令的方式有什么区别吗?因为一开始不知道,按照命令来做f1c100s的文件系统结果是无法挂载。
离线
嗯嗯 是已经成功启动了 只是怕有一些没注意到的地方 谢谢晕哥
离线
使用最新的 u-boot: 编译 V3s 2019 版本的 u-boot
(文件已经在一楼附件内)
2019-05-08 更新:
---------------------------------mkimage -C none -A arm -T script -d boot.cmd boot.scr
用这个命令生成 scr 文件
晕哥 你好,如果我想自己编译用于USB直接启动Linux的uboot(2019.10版本),需要修改哪些内容。我看启动命令已经在SCR文件指定了。
离线
mark
离线
晕哥,我用buildroot-2018.02.10编译出rootfs再转换成rootfs.cpio.gz.uImage,替代 v3s_s3_fel_autorun_linux_uart0_pb8_pb9_201905018_spinand_OK.7z里面的rootfs.cpio.gz.uImage,但是内核启动完后就卡住了,用你原来的就可以正常使用。使用的是华嵌的S3核心板。
制作initramfs时buildroot需要什么特殊配置么。
1.854836] vcc5v0: disabling
[ 1.857810] ALSA device list:
[ 1.860777] #0: V3s Audio Codec
[ 1.864661] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 1.873277] cfg80211: failed to load regulatory.db
[ 1.879464] Freeing unused kernel memory: 1024K
[ 1.884713] Run /linuxrc as init process
[ 1.892990] mmc2: host does not support reading read-only switch, assuming write-enable
[ 1.906697] mmc2: new high speed SD card at address 00c3
[ 1.923229] mmcblk2: mmc2:00c3 E1601 121 MiB
[ 1.936051] mmcblk2: p1
离线
零、目的
华嵌的S3核心板烧系统到sdnand
使用晕哥的 <<荔枝派zero/小智极客S3/V3s使用sunxi-fel 借 u-boot 启动 Linux系统, 无需 spi flash / TF 卡 by 晕哥>>,直接挂SD_NAND为U盘然后烧录
一、硬件
华嵌的S3核心板,没有底板,直接核心板上飞线引出5v GND USB+ USB- 调试口UART0
这块核心板区别于其他开发板 SD NAND是挂在在mmc2上的(PC口sdc2)
二、SDK及固件
华嵌群网盘里提供的uboot(就是 git clone https://github.com/Lichee-Pi/u-boot.git -b v3s-spi-experimental 基础上修改) 及5.1.0的内核
晕哥帖子里的 v3s_s3_fel_autorun_linux_uart0_pb8_pb9_201905018_spinand_OK.7z
三、分析说明
3.1使用v3s_s3_fel_autorun_linux_uart0_pb8_pb9_201905018_spinand_OK.7z
3.1.1完整下载
解压完后利用Run_S3_XiaoZhi.bat里面的命令来下载启动系统,这里及以下我全都是在ubuntu中进行的所以直接用sunxi-tools源码编译后sunxi-fel命令来下载的
sudo ../sunxi-tools/sunxi-fel -p uboot u-boot-sunxi-with-spl.bin.S3 write 0x41000000 zImage write 0x41800000 sun8i-v3s-licheepi-zero-dock.dtb.PG9 write 0x41900000 boot_fel_initrd.scr write 0x41A00000 rootfs.cpio.gz.uImage
串口上的启动信息如下(截取重要的部分):
starting USB...
No controllers found
Hit any key to stop autoboot: 0
(FEL boot)
## Executing script at 41900000
## Loading init Ramdisk from Legacy Image at 41a00000 ...
Image Name: uInitrd
Image Type: ARM Linux RAMDisk Image (uncompressed)
Data Size: 2099576 Bytes = 2 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Ramdisk to 42bff000, end 42dff978 ... OK
Loading Device Tree to 42bf8000, end 42bfe707 ... OK
Starting kernel ...
....
Initializing random number generator... done.
Starting network: OK
[ 3.519445] Mass Storage Function, version: 2009/09/11
[ 3.524617] LUN: removable file: (no medium)
[ 3.562885] lun0: unable to open backing file: /dev/mtdblock0
[ 3.568974] g_mass_storage musb-hdrc.1.auto: failed to start g_mass_storage: -2
[ 3.596488] Mass Storage Function, version: 2009/09/11
[ 3.601792] LUN: removable file: (no medium)
[ 3.619020] lun0: unable to open backing file: /dev/mtdblock0
[ 3.624936] g_mass_storage musb-hdrc.1.auto: failed to start g_mass_storage: -2
modprobe: can't load module g_mass_storage (kernel/drivers/usb/gadget/legacy/g_mass_storage.ko): unknown symbol in module, or unknown parameter
Welcome to Buildroot
buildroot login: root
Password:
# ls /dev/m*
/dev/mem /dev/memory_bandwidth
# cat /etc/init.d/S90mmc0_as_udisk.sh
#modprobe g_mass_storage file=/dev/mmcblk0 removable=1
modprobe g_mass_storage file=/dev/mtdblock0 removable=1
#
我们看到登录进入后没有加载mmc2驱动识别sdnand,这样自己手动加载g_mass_storage重指定file也没用
3.1.2只下载uboot来看一下env
sudo ../sunxi-tools/sunxi-fel -p uboot u-boot-sunxi-with-spl.bin.S3 write
=> printenv
arch=arm
baudrate=115200
board=sunxi
board_name=sunxi
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
boot_efi_binary=load ${devtype} ${devnum}:${distro_bootpart} ${kernel_addr_r} efi/boot/bootarm.efi; if fdt addr ${fdt_addr_r}; then bootefi ${kernel_i
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf
boot_net_usb_start=usb start
boot_prefixes=/ /boot/
boot_script_dhcp=boot.scr.uimg
boot_scripts=boot.scr.uimg boot.scr
boot_targets=fel mmc0 usb0 pxe dhcp
[color=#FF0000]bootcmd=run distro_bootcmd[/color]
bootcmd_dhcp=run boot_net_usb_start; if dhcp ${scriptaddr} ${boot_script_dhcp}; then source ${scriptaddr}; fi;setenv efi_fdtfile ${fdtfile}; if test ;
bootcmd_fel=if test -n ${fel_booted} && test -n ${fel_scriptaddr}; then echo '(FEL boot)'; source ${fel_scriptaddr}; fi
bootcmd_mmc0=setenv devnum 0; run mmc_boot
bootcmd_pxe=run boot_net_usb_start; dhcp; if pxe get; then pxe boot; fi
bootcmd_usb0=setenv devnum 0; run usb_boot
bootdelay=2
bootm_size=0x2e00000
console=ttyS0,115200
cpu=armv7
dfu_alt_info_ram=kernel ram 0x41000000 0x800000;fdt ram 0x41800000 0x100000;ramdisk ram 0x41B00000 0x1000000
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
efi_dtb_prefixes=/ /dtb/ /dtb/current/
fdt_addr_r=0x41800000
fdtcontroladdr=47b562a8
fdtfile=sun8i-v3s-licheepi-zero.dtb
fel_booted=1
kernel_addr_r=0x41000000
load_efi_dtb=load ${devtype} ${devnum}:${distro_bootpart} ${fdt_addr_r} ${prefix}${efi_fdtfile}
mmc_boot=if mmc dev ${devnum}; then setenv devtype mmc; run scan_dev_for_boot_part; fi
preboot=usb start
pxefile_addr_r=0x41A00000
ramdisk_addr_r=0x41B00000
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_de;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devpliste
scan_dev_for_efi=setenv efi_fdtfile ${fdtfile}; if test -z "${fdtfile}" -a -n "${soc}"; then setenv efi_fdtfile ${soc}-${board}${boardver}.dtb; fi; fe
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.i
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot e
scriptaddr=0x41900000
serial#=12c000014a919244
soc=sunxi
stderr=serial@01c28000
stdin=serial@01c28000
stdout=serial@01c28000
usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_for_boot_part; fi
Environment size: 4054/32764 bytes
=>
注意这里的bootcmd=run distro_bootcmd 以及没有设定bootargs
然后再看看里面的scriptaddr、fdt_addr_r等几个地址,理解一下boot_fel_initrd.cmd和Run_S3_XiaoZhi.bat这里面几个地址
3.2使用华嵌提供的SDK
v3s_s3_fel_autorun_linux_uart0_pb8_pb9_201905018_spinand_OK.7z中的boot_fel_initrd.cmd中会设定bootargs,
所以首先将华嵌给的uboot中sun8i.h里面#define CONFIG_BOOTARGS "console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk2p2 rw earlyprintk"这句屏蔽
顺便再理解一下uboot的修改记录:dts里面的关闭spi0打开mmc2并且配好mmc2的管脚、配置文件中配上CONFIG_MMC_SUNXI_SLOT_EXTRA=2
利用SDK中编出u-boot-sunxi-with-spl.bin、sun8i-s3-hqembed-050ips.dtb、zImage
结合楼上提问buildroot编译出来的rootfs用不了,这里使用v3s_s3_fel_autorun_linux_uart0_pb8_pb9_201905018_spinand_OK.7z中的
rootfs.cpio.gz.uImage再加上里面的boot_fel_initrd.scr
这样就拼凑完了要用的镜像文件,然后同样的下载
sudo ../sunxi-tools/sunxi-fel -p uboot u-boot-sunxi-with-spl.bin write 0x41000000 zImage write 0x41800000 sun8i-s3-hqembed-050ips.dtb write 0x41900000 boot_fel_initrd.scr write 0x41A00000 rootfs.cpio.gz.uImage
看一下启动信息:
...
starting USB...
No controllers found
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc1 is current device
MMC: no card present
** Bad device mmc 0 **
MMC: no card present
** Bad device mmc 0 **
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Device Tree to 42df9000, end 42dff707 ... OK
Starting kernel ...
.....
[ 0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/ram0 rdinit=/linuxrc rw earlyprintk
....
[ 1.599704] cfg80211: failed to load regulatory.db
[ 1.605126] Waiting for root device /dev/ram0...
[ 1.617593] mmc2: host does not support reading read-only switch, assuming write-enable
[ 1.625824] mmc2: new high speed SD card at address 00c3
[ 1.632978] mmcblk2: mmc2:00c3 E1601 121 MiB
[ 1.639478] mmcblk2: p1
我们可以看到bootargs传的对,内核起来后mmc2上也认出了sdnand, 但是卡在了Waiting for root device /dev/ram0...上进行不下去
四、修改
4.1修改uboot
此时对比一下3.1与3.2中uboot引导内核时候的打印信息及env,需要修改bootcmd
将华嵌给的uboot中sun8i.h里面
#define CONFIG_BOOTCOMMAND "mmc dev 1;fatload mmc 0 $fdt_addr_r $fdtfile;fatload mmc 0 $kernel_addr_r zImage;bootz $kernel_addr_r - $fdt_addr_r"
修改为
#define CONFIG_BOOTCOMMAND "run distro_bootcmd"
别忘了将uboot中sun8i.h里面#define CONFIG_BOOTARGS "console=ttyS0,115200 panic=5 rootwait root=/dev/mmcblk2p2 rw earlyprintk"这句屏蔽
然后重编出u-boot-sunxi-with-spl.bin,
再配上3.2中编出的sun8i-s3-hqembed-050ips.dtb、zImage
v3s_s3_fel_autorun_linux_uart0_pb8_pb9_201905018_spinand_OK.7z中的rootfs.cpio.gz.uImage与boot_fel_initrd.scr
重新下载运行,看到能正常启动和登录,但有两个问题
mmc2上没有挂载sdnand ---> 解决见4.2
modprobe: can't change directory to '5.1.0': No such file or directory 内核版本与rootfs中里面的ko不匹配---> 解决见4.3
4.2挂载sdnand
看一下3.2中当
CONFIG_BOOTCOMMAND "mmc dev 1;fatload mmc 0 $fdt_addr_r $fdtfile;fatload mmc 0 $kernel_addr_r zImage;bootz $kernel_addr_r - $fdt_addr_r"
时能够正常挂载sdnand
所以修改boot_fel_initrd.cmd,在bootz 0x41000000 0x41A00000 0x41800000前一行mmc dev 1
然后再mkimage -C none -A arm -T script -d boot_fel_initrd.cmd boot_fel_initrd.cmd.scr 出新的scrpit文件
4.3重新制作rootfs.cpio.gz.uImage
用晕哥的v3s_s3_fel_autorun_linux_uart0_pb8_pb9_201905018_spinand_OK.7z中的rootfs.cpio.gz.uImage来逆向
rootfs.cpio.gz.uImage正向打包的是这样
cd /opt/buildroot-2018.08.2/output/target
find . | cpio -o -Hnewc |gzip -9 > ../rootfs.cpio.gz
mkimage -A arm -T ramdisk -C none -n uInitrd -d ../rootfs.cpio.gz ../rootfs.cpio.gz.uImage
逆向:
mkimage其实就是在原来的文件头上加了0x40个字节的特定头让uboot能引导识别,
所以先把rootfs.cpio.gz.uImage重命名成bin文件,用随便能编辑bin文件的工具打开,去掉头上的0x40长度的头,再重名文件成rootfs.cpio.gz
然后gunzip rootfs.cpio.gz出来rootfs.cpio文件,
再sudo cpio -idmv <rootfs.cpio出来rootfs所有文件
对这个rootfs补上/dev/concloe /dev/null
sudo mknod -m 666 console c 5 1
sudo mknod -m 666 null c 1 3
这样就提出来了一个完整的rootfs
替换内核模块:
删除上面rootfs/lib/modules里面原来的两个内核文件夹,把自己编译的华嵌5.1.0内核模块替换过来
先屏蔽/etc/init.d/S90mmc0_as_udisk.sh 里面的驱动加载,方便后面调试
再正向打包生成新的rootfs.cpio.gz.uImage
4.4usb模式
使用上面
4.1的u-boot-sunxi-with-spl.bin、
4.2中的boot_fel_initrd.cmd.scr、
4.3中的rootfs.cpio.gz.uImage、
3.2中华嵌5.1.0内核源码编出来的sun8i-s3-hqembed-050ips.dtb与zImage
下载运行,能识别到sdnand,挂成了/dev/mmcblk2,然后手动
modprobe g_mass_storage file=/dev/mmcblk2 removable=1
但是ubuntu电脑上没有任何反应,
看一下内核sun8i-s3-hqembed-050ips.dts中
&usb_otg {
//dr_mode = "otg";
dr_mode = "host";
//dr_mode = "peripheral";
status = "okay";
};
我们这里需要usb device模式,将其修改为
&usb_otg {
//dr_mode = "otg";
//dr_mode = "host";
dr_mode = "peripheral";
status = "okay";
};
再重新下载,运行,至此能够在电脑上显示sdnand盘了。
下面就可以用命令来分区和烧写sdnand了
离线
回复一下前面buildroot编出来转rootfs.cpio.gz.uImage不能启动的问题:
这里重新配一下buildroot,里面Filesystem images ---> 选中cpio the root filesystem (for use as an initial RAM filesystem) 并且 Compression method 选择(gzip)
重新编译完后在buildroot的 out/images/目录下直接有rootfs.cpio.gz
然后用这个文件来加头 mkimage -A arm -T ramdisk -C none -n uInitrd -d ../rootfs.cpio.gz ../rootfs.cpio.gz.uImage
这样就能正常挂了。
去output/target目录里面手动打cpio再加头出来的rootfs.cpio.gz.uImage没发启动起来。
五、烧写sdnand
接楼上接着进行分区和烧写sdnand
5.0看一下sdnand的信息
我没找到sdnand的数据手册,进入uboot看一下mmcinfo,顺便把mmc擦一下
同3.1.2中方法一样只运行uboot
sudo ../sunxi-tools/sunxi-fel -p uboot u-boot-sunxi-with-spl.bin.S3 write
进入uboot后
=> mmc list
SUNXI SD/MMC: 1
SUNXI SD/MMC: 0 (SD)
=> mmc dev 0
switch to partitions #0, OK
mmc0 is current device
=>
=> mmcinfo
Device: SUNXI SD/MMC
Manufacturer ID: d5
OEM: 5344
Name: E1601
Tran Speed: 50000000
Rd Block Len: 512
SD version 1.10
High Capacity: No
Capacity: 120.9 MiB
Bus Width: 1-bit
Erase Group Size: 512 Bytes
=> mmc erase 0 40000
5.1建分区
按4.4中下载运行全部镜像
我这里是在开发板上直接用命令进行分区,这个pc上fdisk分区有点区别
# fdisk /dev/mmcblk2
The number of cylinders for this disk is set to 3868.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/mmcblk2: 120 MB, 126746624 bytes, 247552 sectors
3868 cylinders, 4 heads, 16 sectors/track
Units: cylinders of 64 * 512 = 32768 bytes
Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
Command (m for help): u
Changing display/entry units to sectors
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First sector (16-247551, default 16): 2048
Last sector or +size or +sizeM or +sizeK (2048-247551, default 247551): 18431
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 2
First sector (16-247551, default 16): 18432
Last sector or +size or +sizeM or +sizeK (18432-247551, default 247551): Using default value 247551
Command (m for help): p
Disk /dev/mmcblk2: 120 MB, 126746624 bytes, 247552 sectors
3868 cylinders, 4 heads, 16 sectors/track
Units: sectors of 1 * 512 = 512 bytes
Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
/dev/mmcblk2p1 32,0,1 287,3,16 2048 18431 16384 8192K 83 Linux
/dev/mmcblk2p2 288,0,1 1023,3,16 18432 247551 229120 111M 83 Linux
Command (m for help): t
Partition number (1-4): 1
Hex code (type L to list codes): L
0 Empty 1b Hidden Win95 FAT32 9f BSD/OS
1 FAT12 1c Hidden W95 FAT32 (LBA) a0 Thinkpad hibernation
4 FAT16 <32M 1e Hidden W95 FAT16 (LBA) a5 FreeBSD
5 Extended 3c Part.Magic recovery a6 OpenBSD
6 FAT16 41 PPC PReP Boot a8 Darwin UFS
7 HPFS/NTFS 42 SFS a9 NetBSD
a OS/2 Boot Manager 63 GNU HURD or SysV ab Darwin boot
b Win95 FAT32 80 Old Minix b7 BSDI fs
c Win95 FAT32 (LBA) 81 Minix / old Linux b8 BSDI swap
e Win95 FAT16 (LBA) 82 Linux swap be Solaris boot
f Win95 Ext'd (LBA) 83 Linux eb BeOS fs
11 Hidden FAT12 84 OS/2 hidden C: drive ee EFI GPT
12 Compaq diagnostics 85 Linux extended ef EFI (FAT-12/16/32)
14 Hidden FAT16 <32M 86 NTFS volume set f0 Linux/PA-RISC boot
16 Hidden FAT16 87 NTFS volume set f2 DOS secondary
17 Hidden HPFS/NTFS 8e Linux LVM fd Linux raid autodetect
Hex code (type L to list codes): b
Changed system type of partition 1 to b (Win95 FAT32)
Command (m for help): p
Disk /dev/mmcblk2: 120 MB, 126746624 bytes, 247552 sectors
3868 cylinders, 4 heads, 16 sectors/track
Units: sectors of 1 * 512 = 512 bytes
Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
/dev/mmcblk2p1 32,0,1 287,3,16 2048 18431 16384 8192K b Win95 FAT32
/dev/mmcblk2p2 288,0,1 1023,3,16 18432 247551 229120 111M 83 Linux
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table
[ 402.950685] mmcblk2: p1 p2
# sync
#
说明一下这里在开发板子中直接使用命令见分区与在宿主机上fdsik是有差距的.
分区说明:
最头上1M用来放uboot,由于这款SDNAND的sector szie是512字节,所以第一个分区前预留1Mbyte/512byte=2048个sector
然后第一个分区定为8M,这样他的结束就是2048+8Mbyte/512byte -1 = 18431,
这里我用+8M没成功,因为开发板上的fdisk貌似是绝对偏移,不是相对的
第二个分区就是剩下的所有sector,也就是从18432开始到结束,
5.2建文件系统
继续在开发版上有命令
# mk
mkdir mkdosfs mke2fs mkfifo mknod mkpasswd mkswap mktemp
# mk
-sh: mk: not found
# mkdosfs --help
BusyBox v1.27.2 (2020-03-11 16:31:30 CST) multi-call binary.
Usage: mkdosfs [-v] [-n LABEL] BLOCKDEV [KBYTES]
Make a FAT32 filesystem
-v Verbose
-n LBL Volume label
# mkdosfs -n 'boot' /dev/mmcblk2p
mmcblk2p1 mmcblk2p2
# mkdosfs -n 'boot' /dev/mmcblk2p1
# mkdosfs -n 'boot' /dev/mmcblk2p1^C
# mke2fs --help
BusyBox v1.27.2 (2020-03-11 16:31:30 CST) multi-call binary.
Usage: mke2fs [-Fn] [-b BLK_SIZE] [-i INODE_RATIO] [-I INODE_SIZE] [-m RESERVED_PERCENT] [-L LABEL] BLOCKDEV [KBYTES]
-b BLK_SIZE Block size, bytes
-F Force
-i RATIO Max number of files is filesystem_size / RATIO
-I BYTES Inode size (min 128)
-L LBL Volume label
-m PERCENT Percent of blocks to reserve for admin
-n Dry run
# mke2fs -L 'root' /dev/mmcblk2p2
Filesystem label=root[ 727.997914] random: mke2fs: uninitialized urandom read (16 bytes read)
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (l[ 728.006343] random: mke2fs: uninitialized urandom read (16 bytes read)
og=0)
29040 inodes, 115955 blocks
5797 blocks (5%) reserved for the super user
First data block=1
Maximum filesystem blocks=262144
15 block groups
8192 blocks per group, 8192 fragments per group
1936 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729
[ 729.292446] random: crng init done
#
5.3挂载烧录
在开发班上
# modprobe g_mass_storage file=/dev/mmcblk2 removable=1
[ 744.235652] Mass Storage Function, version: 2009/09/11
[ 744.240814] LUN: removable file: (no medium)
[ 744.245441] LUN: removable file: /dev/mmcblk2
[ 744.249800] Number of LUNs=1
[ 744.275659] g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
[ 744.282638] g_mass_storage gadget: userspace failed to provide iSerialNumber
[ 744.289816] g_mass_storage gadget: g_mass_storage ready
# [ 744.787406] g_mass_storage gadget: high-speed config #1: Linux File-Backed Storage
这是时候就能看到ubuntu下能够挂出两个盘 boot 与root
在ubuntun电脑上
$ sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdc bs=1k seek=8
记录了408+1 的读入
记录了408+1 的写出
418642 bytes (419 kB, 409 KiB) copied, 0.0421526 s, 9.9 MB/s
$ cp zImage sun8i-s3-hqembed.dtb /media/pc189/boot/
$ sudo tar xvf rootfs.tar -C /media/pc189/root/
注意这里的u-boot-sunxi-with-spl.bin为重新编译的bootcmd为使用mmc,bootargs挂载/dev/mmcblk2p2为root 的uboot
至此烧完重启设备正常
离线
学习了!!牛逼
离线
在线
如果贴片式的sd卡有uboot了,还能用这个办法吗
离线
离线
感谢分享,收藏一下先
离线
fel下载速度怎么亲,好像很慢啊
离线
收藏一下,明天板子到试试
离线
裸奔测试程序: v3s_s3_fel_autorun_linux_uart2_pb0_pb0_0x41000000.zip
双击 run_0x41000000.bat usb fel 即可运行裸奔程序 v3s_0x41000000.bin, 串口 uart2 (PB0/PB1) 有输出.
离线
这个帖子我反复操作实践了很长时间才搞定, 现在大大方便了Linux kernel/dtb/rootfs/app 的调试
这个帖子我反复操作实践了很长时间才搞定, 现在大大方便了Linux kernel/dtb/rootfs/app 的调试
这个帖子我反复操作实践了很长时间才搞定, 现在大大方便了Linux kernel/dtb/rootfs/app 的调试
......
Hello,
I cannot access the uploaded file. Please post the contents of boot_fel_initrd.cmd file here. Thanks!
离线
厉害
离线
收藏留印
离线
太有用了,点赞点赞!
离线
老大,用自己的 rootfs,不管是用您给的方法打包成 rootfs.cpio.gz.uimage,还是用上面网友提到的自动生成 rootfs.cpio.gz然后手动打包,都是 启动后出现 "Start kernel",然后就卡住了。
能不能提供一下 buildroot 的信息,比如版本和 .config文件等,谢谢!
@JinC 感谢分享, 为了方便给位老友搜索, 特加入本站精华帖
100. 荔枝派zero/小智极客S3/V3s使用sunxi-fel 借 u-boot 启动 Linux系统, 无需 spi flash / TF 卡 by@JinC
离线
试过,不行。这个选项可以自动生成 rootfs.cpio和 rootfs.cpio.gz(选 gzip压缩时)
https://whycan.com/files/members/3907/QQ截图20201126220820.png
勾选这个就应该可以了, 你可以试一试, 行不行都回一下.
最近编辑记录 angelsan (2020-11-27 10:28:10)
离线
U-Boot 2017.01-rc2-00057-g32ab180-dirty (Nov 26 2020 - 21:09:42 +0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
Card did not respond to voltage select!
*** Warning - MMC init failed, using default environment
Setting up a 1024x600 lcd console (overscan 0x0)
dotclock: 51000kHz = 51000kHz: (1 * 3MHz * 102) / 6
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
U-Boot 2017.01-rc2-00057-g32ab180-dirty (Nov 26 2020 - 21:09:42 +0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: SUNXI SD/MMC: 0
Card did not respond to voltage select!
*** Warning - MMC init failed, using default environment
Setting up a 1024x600 lcd console (overscan 0x0)
dotclock: 51000kHz = 51000kHz: (1 * 3MHz * 102) / 6
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
Net: No ethernet found.
starting USB...
No controllers found
(FEL boot)
## Executing script at 41900000
## Loading init Ramdisk from Legacy Image at 41a00000 ...
Image Name: uInitrd
Image Type: ARM Linux RAMDisk Image (uncompressed)
Data Size: 17998595 Bytes = 17.2 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Ramdisk to 41cd5000, end 42dff303 ... OK
Loading Device Tree to 41ccf000, end 41cd4e4f ... OK
Starting kernel ...
离线
rootfs.cpio.gz.uImage 是18M的样子,用过几个,都不行。比如“入坑指南”里面的 2017.08,“一键生成 spi-nor,自动启动 AnalogClock”里面的 2018.08,几个版本都一样,都是 Starting Kernel,然后就没有了。
老大,您那个rootfs是哪个版本的?
这就尴尬了,文件有多大?
离线
和buildroot版本没有关系, 应该是尺寸和文件格式问题。
rootfs.cpio.gz.uImage 是18M的样子,用过几个,都不行。比如“入坑指南”里面的 2017.08,“一键生成 spi-nor,自动启动 AnalogClock”里面的 2018.08,几个版本都一样,都是 Starting Kernel,然后就没有了。
老大,您那个rootfs是哪个版本的?哇酷小二 说:这就尴尬了,文件有多大?
离线
确认,是大小的问题。不要 qt5,10M的样子,可以启动,只是会出别的错
[ 1.976157] Freeing unused kernel memory: 1024K
Starting logging: OK
Starting network: OK
getty: can't open '/dev/null': No such file or directory
getty: can't open '/dev/null': No such file or directory
getty: can't open '/dev/null': No such file or directory
和buildroot版本没有关系, 应该是尺寸和文件格式问题。
angelsan 说:rootfs.cpio.gz.uImage 是18M的样子,用过几个,都不行。比如“入坑指南”里面的 2017.08,“一键生成 spi-nor,自动启动 AnalogClock”里面的 2018.08,几个版本都一样,都是 Starting Kernel,然后就没有了。
老大,您那个rootfs是哪个版本的?哇酷小二 说:这就尴尬了,文件有多大?
离线
裸奔测试程序: v3s_s3_fel_autorun_linux_uart2_pb0_pb0_0x41000000.zip
双击 run_0x41000000.bat usb fel 即可运行裸奔程序 v3s_0x41000000.bin, 串口 uart2 (PB0/PB1) 有输出.
无比神奇, 请教是什么原理?
离线
U-Boot SPL 2020.10 (Mar 04 2021 - 10:42:55 +0800)
DRAM: 64 MiB
Trying to boot from FEL
U-Boot 2020.10 (Mar 04 2021 - 10:42:55 +0800) Allwinner Technology
CPU: Allwinner V3s (SUN8I 1681)
Model: Lichee Pi Zero
DRAM: 64 MiB
MMC: mmc@01c0f000: 0
Loading Environment from FAT... Card did not respond to voltage select!
In: serial@01c28000
Out: serial@01c28000
Err: serial@01c28000
Net: No ethernet found.
starting USB...
No working controllers found
Hit any key to stop autoboot: 0
(FEL boot)
## Executing script at 41900000
## Loading init Ramdisk from Legacy Image at 41a00000 ...
Image Name: uInitrd
Image Type: ARM Linux RAMDisk Image (uncompressed)
Data Size: 4769746 Bytes = 4.5 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 41800000
Booting using the fdt blob at 0x41800000
Loading Ramdisk to 42973000, end 42dff7d2 ... OK
Loading Device Tree to 4296d000, end 42972350 ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.3.5 (xfdr@virtualbox) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05)) #1 SMP Wed Mar 3 13:21:29 CST 2021
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Lichee Pi Zero with Dock
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 16 MiB at 0x41800000
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: Using PSCI v0.1 Function IDs from DT
[ 0.000000] percpu: Embedded 15 pages/cpu s30412 r8192 d22836 u61440
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: console=ttyS0,115200 panic=5 rootwait root=/dev/ram0 rdinit=/linuxrc earlyprintk rw
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 33852K/65536K available (6144K kernel code, 431K rwdata, 1648K rodata, 1024K init, 243K bss, 15300K reserved, 16384K cma-reserved, 0K highmem)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set
[ 0.000000] random: get_random_bytes called from start_kernel+0x2f8/0x488 with crng_init=0
[ 0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[ 0.000007] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[ 0.000020] Switching to timer-based delay loop, resolution 41ns
[ 0.000215] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[ 0.000452] Console: colour dummy device 80x30
[ 0.000510] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[ 0.000526] pid_max: default: 32768 minimum: 301
[ 0.000688] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.000707] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.001564] CPU: Testing write buffer coherency: ok
[ 0.002092] /cpus/cpu@0 missing clock-frequency property
[ 0.002117] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002923] Setting up static identity map for 0x40100000 - 0x40100060
[ 0.003145] rcu: Hierarchical SRCU implementation.
[ 0.003631] smp: Bringing up secondary CPUs ...
[ 0.003652] smp: Brought up 1 node, 1 CPU
[ 0.003661] SMP: Total of 1 processors activated (48.00 BogoMIPS).
[ 0.003668] CPU: All CPU(s) started in HYP mode.
[ 0.003672] CPU: Virtualization extensions available.
[ 0.004507] devtmpfs: initialized
[ 0.007495] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.007801] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.007832] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[ 0.008647] pinctrl core: initialized pinctrl subsystem
[ 0.009863] NET: Registered protocol family 16
[ 0.011168] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.012430] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.012448] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.027629] SCSI subsystem initialized
[ 0.028336] usbcore: registered new interface driver usbfs
[ 0.028392] usbcore: registered new interface driver hub
[ 0.028486] usbcore: registered new device driver usb
[ 0.028721] pps_core: LinuxPPS API ver. 1 registered
[ 0.028730] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.028753] PTP clock support registered
[ 0.029028] Advanced Linux Sound Architecture Driver Initialized.
[ 0.030386] clocksource: Switched to clocksource arch_sys_counter
[ 0.040112] thermal_sys: Registered thermal governor 'step_wise'
[ 0.040655] NET: Registered protocol family 2
[ 0.041291] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 0.041325] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.041354] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 0.041377] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.041532] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.041583] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.041830] NET: Registered protocol family 1
[ 0.042991] RPC: Registered named UNIX socket transport module.
[ 0.043014] RPC: Registered udp transport module.
[ 0.043020] RPC: Registered tcp transport module.
[ 0.043025] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.043298] Unpacking initramfs...
[ 0.367021] Freeing initrd memory: 4660K
[ 0.368776] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 0.377037] NFS: Registering the id_resolver key type
[ 0.377098] Key type id_resolver registered
[ 0.377106] Key type id_legacy registered
[ 0.377221] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[ 0.377233] io scheduler mq-deadline registered
[ 0.377240] io scheduler kyber registered
[ 0.378140] sun4i-usb-phy 1c19400.phy: Couldn't request ID GPIO
[ 0.382177] sun8i-v3s-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[ 0.445723] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[ 0.448012] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pb not found, using dummy regulator
[ 0.449094] printk: console [ttyS0] disabled
[ 0.469399] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 32, base_baud = 1500000) is a U6_16550A
[ 1.049555] printk: console [ttyS0] enabled
[ 1.078421] libphy: Fixed MDIO Bus: probed
[ 1.082620] CAN device driver interface
[ 1.086948] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.093532] ehci-platform: EHCI generic platform driver
[ 1.098853] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.105083] ohci-platform: OHCI generic platform driver
[ 1.111402] input: 1c22800.lradc as /devices/platform/soc/1c22800.lradc/input/input0
[ 1.120673] sun6i-rtc 1c20400.rtc: registered as rtc0
[ 1.125735] sun6i-rtc 1c20400.rtc: RTC enabled
[ 1.130521] i2c /dev entries driver
[ 1.135192] sunxi-wdt 1c20ca0.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[ 1.143836] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pf not found, using dummy regulator
[ 1.180537] sunxi-mmc 1c0f000.mmc: initialized, max. request size: 16384 KB
[ 1.187804] sun8i-v3s-pinctrl 1c20800.pinctrl: 1c20800.pinctrl supply vcc-pg not found, using dummy regulator
[ 1.224508] sunxi-mmc 1c10000.mmc: initialized, max. request size: 16384 KB
[ 1.232535] usbcore: registered new interface driver usbhid
[ 1.238107] usbhid: USB HID core driver
[ 1.243725] NET: Registered protocol family 17
[ 1.248203] can: controller area network core (rev 20170425 abi 9)
[ 1.254605] NET: Registered protocol family 29
[ 1.259054] can: raw protocol (rev 20170425)
[ 1.263358] can: broadcast manager protocol (rev 20170425 t)
[ 1.269019] can: netlink gateway (rev 20170425) max_hops=1
[ 1.274884] Key type dns_resolver registered
[ 1.279296] Registering SWP/SWPB emulation handler
[ 1.292580] usb_phy_generic usb_phy_generic.0.auto: usb_phy_generic.0.auto supply vcc not found, using dummy regulator
[ 1.304121] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 1.309888] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[ 1.319365] hub 1-0:1.0: USB hub found
[ 1.323433] hub 1-0:1.0: 1 port detected
[ 1.328842] sun6i-rtc 1c20400.rtc: setting system clock to 1970-01-01T00:24:24 UTC (1464)
[ 1.337404] ALSA device list:
[ 1.340445] No soundcards found.
[ 1.346022] Freeing unused kernel memory: 1024K
[ 1.350852] Run /linuxrc as init process
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Starting network: OK
can't open /dev/ttyS0: No such file or directory
can't open /dev/ttyS0: No such file or directory
can't open /dev/ttyS0: No such file or directory
can't open /dev/ttyS0: No such file or directory
can't open /dev/ttyS0: No such file or directory
[ 5.787124] random: fast init done
can't open /dev/ttyS0: No such file or directory
can't open /dev/ttyS0: No such file or directory
can't open /dev/ttyS0: No such file or directory
can't open /dev/ttyS0: No such file or directory
can't open /dev/ttyS0: No such file or directory
Connection closed.
启动成功后 这些错误是什么原因?
最近编辑记录 xfdr0805 (2021-03-04 11:45:35)
离线
文件系统不完整吧,貌似有些设备文件没有找到?
离线
文件系统不完整吧,貌似有些设备文件没有找到?
重新编译了一下,现在可以正常进入终端 了
还有这一个问题
can't open /dev/null: No such file or directory
[ 1.476175] ALSA device list:
[ 1.479151] No soundcards found.
[ 1.484756] Freeing unused kernel memory: 1024K
[ 1.490489] Run /linuxrc as init process
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
can't open /dev/null: No such file or directory
Starting syslogd: OK
Starting klogd: OK
Running sysctl: OK
Starting mdev... OK
Saving random seed: [ 2.668309] random: dd: uninitialized urandom read (512 bytes read)
OK
Starting network: OK
Welcome to Buildroot for the LicheePi Zero
licheepi-zero login: [ 7.075283] random: fast init done
Welcome to Buildroot for the LicheePi Zero
licheepi-zero login: root
最近编辑记录 xfdr0805 (2021-03-04 13:32:43)
离线
Initial RAM silesystem and RAM disk这项关了试试
离线
感谢分享,收藏一下,等案子开始了,就有用了
离线
顶啊,以后调试不用卡了
离线
这样就方便很多了,不用来回换卡。可以提高测试时的效率
离线
I will use V3S in my new design. But does it boot from EMMC(SDC1)
离线
离线
@晕哥
很棒666
离线
感谢分享,不知道V3X能用这个烧写不呢?
离线
V3x 能支持就好,要自己做
离线
Image too large: increase CONFIG_SYS_BOOTM_LEN
晕哥 说:
使用最新的 u-boot: 编译 V3s 2019 版本的 u-boot
老大是这个源码?直接编译还是要修改哪里
最近编辑记录 vigour1000 (2023-02-10 20:21:19)
离线
Image too large: increase CONFIG_SYS_BOOTM_LEN
晕哥 说:
使用最新的 u-boot: 编译 V3s 2019 版本的 u-boot
老大是这个源码?直接编译还是要修改哪里
@晕哥
离线
我使用的f1c200的板子,一直按照启动命令来测试,但是一直没有反应。后来发现内存地址0x40000000的地方,存不住数据,只能在0x80000000的位置。
离线
E:\MD\sunxi\sunxi-tools-mingw64>sunxi-fel u-boot rttherad.bin
Invalid command u-boot
是什么意思
离线
E:\MDD\sunxi\sunxi-tools-mingw64>sunxi-fel u-boot rttherad.bin
Invalid command u-boot
离线
把刷写文件直接放到目录文件夹下就可以自动下载刷写吗
离线