Linux kernel Yocto启动分区错误(英特尔爱迪生)

Linux kernel Yocto启动分区错误(英特尔爱迪生),linux-kernel,u-boot,yocto,intel-edison,Linux Kernel,U Boot,Yocto,Intel Edison,我试图调整运行在Yocto系统上的Intel Edison的分区大小。我不知何故破坏了分区1。所以,当我重新启动系统时,它会一直循环以正确引导系统。所以,中断引导序列并检查分区,看看哪里出了问题。正如您在下面看到的,分区从第二个开始,而不是第一个!根据bootloader的错误,它搜索第1部分,但找不到。那个么我如何手动添加/创建/修复分区1来恢复系统呢 boot > printenv partitions partitions=uuid_disk=${uuid_disk};name=u

我试图调整运行在Yocto系统上的Intel Edison的分区大小。我不知何故破坏了分区1。所以,当我重新启动系统时,它会一直循环以正确引导系统。所以,中断引导序列并检查分区,看看哪里出了问题。正如您在下面看到的,分区从第二个开始,而不是第一个!根据bootloader的错误,它搜索第1部分,但找不到。那个么我如何手动添加/创建/修复分区1来恢复系统呢

boot > printenv partitions

partitions=uuid_disk=${uuid_disk};name=u-boot0,start=1MiB,size=2MiB,uuid=${uuid_uboot0};name=u-boot-env0,size=1MiB,uuid=${uuid_uboot_env0};name=u-boot1,size=2MiB,uuid=${uuid_uboot1};name=u-boot-env1,size=1MiB,uuid=${uuid_uboot_env1};name=factory,size=1MiB,uuid=${uuid_factory};name=panic,size=24MiB,uuid=${uuid_panic};name=boot,size=32MiB,uuid=${uuid_boot};name=rootfs,size=512MiB,uuid=${uuid_rootfs};name=update,size=768MiB,uuid=${uuid_update};name=home,size=-,uuid=${uuid_home};


boot > mmc part


Partition Map for MMC device 0  --   Partition Type: DOS


Part    Start Sector    Num Sectors     UUID            Type
  2     16              7634928         00000000-02     83
启动顺序

******************************
PSH KERNEL VERSION: b0182727
                WR: 20104000
******************************


SCU IPC: 0x800000d0  0xfffce92c


PSH miaHOB version: TNG.B0.VVBD.0000000c


microkernel built 23:15:13 Apr 24 2014


******* PSH loader *******
PCM page cache size = 192 KB
Cache Constraint = 0 Pages
Arming IPC driver ..
Adding page store pool ..
PagestoreAddr(IMR Start Address) = 0x04899000
pageStoreSize(IMR Size)          = 0x00080000


*** Ready to receive application ***




U-Boot 2014.04 (Oct 14 2014 - 15:19:04)


       Watchdog enabled
DRAM:  980.6 MiB
MMC:   tangier_sdhci: 0
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
Target:blank
Partitioning already done...
Flashing already done...
**dfu_fill_entity_mmc: could not find partition #1 on mmc device #0!
ERROR: DFU entities configuration failed!**


at drivers/dfu/dfu.c:71/dfu_init_env_entities()
dfu - Device Firmware Upgrade


Usage:
dfu <USB_controller> <interface> <dev> [list|timeout]
  - device firmware upgrade via <USB_controller>
    on device <dev>, attached to interface
    <interface>
    [list] - list available alt settings
    [timeout] - specify inactivity timeout in sec, doesn't work whit list
** Invalid partition 7 **
Error: Invalid Boot Flag (found 0xffef, expected 0xaa55)
## Kernel loading failed ...
zboot - Boot bzImage


Usage:
zboot [addr] [size] [initrd addr] [initrd size]
      addr -        The optional starting address of the bzimage.
                    If not set it defaults to the environment
                    variable "fileaddr".
      size -        The optional size of the bzimage. Defaults to
                    zero.
      initrd addr - The address of the initrd image to use, if any.
      initrd size - The size of the initrd image to use, if any.


Unknown boot mode: boot
Saving Environment to MMC...
Writing to MMC(0)... done
Resetting to default boot mode and reboot...
resetting ...
******************************
PSH内核版本:b0182727
西铁:20104000
******************************
SCU IPC:0x800000d0 0xfffce92c
PSH miaHOB版本:TNG.B0.VVBD.0000000c
微内核构建时间2014年4月24日23:15:13
*******PSH装载机*******
PCM页缓存大小=192 KB
缓存约束=0页
正在启用IPC驱动程序。。
正在添加页面存储池。。
PagestoreAddr(IMR起始地址)=0x04899000
pageStoreSize(IMR大小)=0x00080000
***已准备好接受申请***
U-Boot 2014.04(2014年10月14日-15:19:04)
看门狗启用
DRAM:980.6 MiB
MMC:tangier_sdhci:0
In:序列号
输出:序列号
错误:串行
按任意键停止自动启动:0
目标:空白
分区已完成。。。
已经完成了。。。
**dfu_fill_entity_mmc:在mmc设备#0上找不到分区#1!
错误:DFU实体配置失败**
at drivers/dfu/dfu.c:71/dfu_init_env_entities()
dfu-设备固件升级
用法:
dfu[列表|超时]
-设备固件升级通过
在设备上,连接到接口
[列表]-列出可用的alt设置
[超时]-以秒为单位指定非活动超时,在列表中不起作用
**无效分区7**
错误:启动标志无效(找到0xffef,应为0xaa55)
##内核加载失败。。。
zboot-Boot bzImage
用法:
zboot[addr][size][initrd addr][initrd size]
addr-bzimage的可选起始地址。
如果未设置,则默认为环境
变量“fileaddr”。
大小-bzimage的可选大小。默认为
零
initrd addr—要使用的initrd映像的地址(如果有)。
initrd size—要使用的initrd映像的大小(如果有)。
未知启动模式:启动
正在将环境保存到MMC。。。
正在写入MMC(0)。。。完成
正在重置为默认启动模式并重新启动。。。
重置。。。

我自己解决了那个问题。中断引导序列后,使用gpt命令将新分区添加到mmc。然后,系统正确引导