nxp uuu工具

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

nxp uuu工具

Jump to solution
8,660 Views
luoyaojun
Contributor II

目前正在学习研究uuu工具对nxp系列平台进行刷机操作,现遇到问题:

uuu可以将image file直接烧写进UDA,那么这个image file如何制作?bitbake似乎无法生成img?

pastedImage_1.png

关于LOADADDR的一些疑问,这个LOADADDR的地址如何确定?以IMX6UL为例:

pastedImage_1.png

8000_0000为内存起始地址,理论上我们可以将LOADADDR设定为8000_0000~FFFF_FFFF中的任何位置。

我还接触了一些IMX6UL,它们的LOADDADDR为10008000,请问这否是指将内核加载到AES Encryption区域?

0 Kudos
Reply
1 Solution
8,038 Views
joanxie
NXP TechSupport
NXP TechSupport

you can get image(uboot, kernel....) though bitbake, for loadaddr, pls find the chapter Table 45. Board-specific default values of enclose file, for more detailed information about this, you can refer to the enclosed file too

View solution in original post

0 Kudos
Reply
5 Replies
8,039 Views
joanxie
NXP TechSupport
NXP TechSupport

you can get image(uboot, kernel....) though bitbake, for loadaddr, pls find the chapter Table 45. Board-specific default values of enclose file, for more detailed information about this, you can refer to the enclosed file too

0 Kudos
Reply
8,038 Views
luoyaojun
Contributor II

我指的image是二进制文件,不是单独的uboot kernel。。。比如 dd if=/dev/zero of=./system.img bs=1M count=500,生成一个500M的img文件,然后将其分为2个区,一个为fat,一个为ext4,把dtb、kernel放到fat区,rootfs放到ext4分区,将这个img直接烧录到emmc的UDA,但是dd制作的img无法进行resize2fs操作,问题肯定在img的制作方式上,不知道官方是否有提供制作这种img的方法?

0 Kudos
Reply
8,038 Views
joanxie
NXP TechSupport
NXP TechSupport

we have sdcard image which includes dtb kernel and rootfs, you can find the sdcard layout from the link as below,

meta-fsl-arm/image_types_fsl.bbclass at master · Freescale/meta-fsl-arm · GitHub 

0 Kudos
Reply
8,038 Views
luoyaojun
Contributor II

嗯,这是制作sdcard的方法,buildroot中的genimage工具也可以制作这个img文件,但我希望得到emmc.img文件像这样:

pastedImage_1.png

假设emmc.img制作出来后大小为1G,我使用uuu将该文件烧录到我板子的emmc后可以成功启动(现在已经实现并测试可以启动),进入系统后使用resize2fs无法将剩余空间利用起来:

emmc实际使用:

root@imx6ulevk:~# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 1.2G 957M 143M 88% /
devtmpfs 88M 76K 88M 1% /dev
tmpfs 40K 0 40K 0% /mnt/.psplash
tmpfs 249M 216K 249M 1% /run
tmpfs 249M 88K 249M 1% /var/volatile
/dev/mmcblk1p1 16M 5.5M 11M 35% /run/media/mmcblk1p1

emmc总容量:

root@imx6ulevk:~# fdisk -l

Disk /dev/mmcblk1: 7.3 GiB, 7801405440 bytes, 15237120 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000

Device Boot Start End Sectors Size Id Type
/dev/mmcblk1p1 * 1 32768 32768 16M c W95 FAT32 (LBA)
/dev/mmcblk1p2 32769 2678784 2646016 1.3G 83 Linux

使用命令resize2fs无法扩展分区:

root@imx6ulevk:~# resize2fs /dev/mmcblk1p2
resize2fs 1.44.5 (15-Dec-2018)
The filesystem is already 330752 (4k) blocks long. Nothing to do!

引起这个故障的原因是否是我的emmc.img有问题?

0 Kudos
Reply
8,038 Views
luoyaojun
Contributor II

补充:

EMMC 8G 暂时忽略除UDA以外的分区。

0 Kudos
Reply