|
27.08.2018, 21:29 | #1 |
Senior Member
Регистрация: 04.01.2013
Адрес: Москва
Сообщений: 461
Вес репутации: 1152 |
Movienizer нашел 20 фильмов по стране Франция
Может так как предлагает Крис для U7623? The board ships with u-boot, and the first installation needs to be done via the bootloader using tftp. Step number one is to update the MBR of the eMMC, as the one that ships with the device is broken. Since the device can ship with different storage sizes, I will not provide the exact steps for creating a valid MBR. However, I have made some assumptions about the disk layout - there must be one 8MB recovery partition (FAT32) and a partition for the rootfs (Linux). The board loads the kernel from block 0xA00 (2560) and I have reserved 32MB for the kernel (65536 blocks). I have aligned the partitions on the erase block size (4096 byte), so the recovery partition must start on block 69632 and end on 86016 (16385 sectors). The rootfs is assumed to start on sector 90112. In order to install the mbr, you run the following commands from the u-boot command line: * tftpboot ${loadaddr} u7623-mbr.img * mmc device 0 * mmc write ${loadaddr} 0x00 1 Сам файл u7623-mbr.img создается скриптом Развернуть для просмотраКод:
#!/bin/bash SECTORS=15269888 SECTOR_SIZE=512 OUTFILE=u7623-mbr.tmp OUTFILE_MBR=u7623-mbr.img dd if=/dev/zero of=$OUTFILE seek=$((SECTORS - 1)) bs=$SECTOR_SIZE count=1 parted -s -- u7623-mbr.tmp \ unit s \ mklabel msdos \ mkpart primary fat32 69632 86016 \ mkpart primary ext4 90112 -1 dd if=$OUTFILE of=$OUTFILE_MBR bs=512 count=1 rm $OUTFILE [свернуть] |
Метки |
bpi-r2, mediatek, mtk 7623 |
Здесь присутствуют: 4 (пользователей: 0 , гостей: 4) | |
|
|