{"id":864,"date":"2015-07-19T05:48:24","date_gmt":"2015-07-18T20:48:24","guid":{"rendered":"https:\/\/hack.gpl.jp\/?p=864"},"modified":"2015-07-19T05:48:24","modified_gmt":"2015-07-18T20:48:24","slug":"post-864","status":"publish","type":"post","link":"https:\/\/hack.gpl.jp\/2015\/07\/19\/post-864.html","title":{"rendered":"BerryBoot \u7528\u306eBoot img \u4f5c\u6210\u3067\u30c9\u306f\u307e\u308a"},"content":{"rendered":"
\u304b\u306a\u308a\u3001\u30cf\u30de\u30c3\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u30dd\u30a4\u30f3\u30c8\u3092\u5f8c\u307b\u3069\u3001\u30e1\u30e2\u3057\u3066\u304a\u304f\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n
\u4f55\u306b\u306f\u307e\u3063\u305f\u304b\u3063\u3066\u3044\u3046\u3068\u3001Fedora21 \uff5e 22 \u306e\u5404\u7a2eARM \u7528\u306e\u30a4\u30e1\u30fc\u30b8\u30d5\u30a1\u30a4\u30eb\u3092 BerryBoot \u306e img \u306b\u3059\u308b\u624b\u9806\u304c\u3046\u307e\u304f\u3044\u304b\u306a\u304f\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3001Kernel panic \u3067Boot \u3057\u306a\u3044\u308f\u3051\u3067\u3002\u304f\u3058\u3051\u305d\u3046\u306b\u306a\u3063\u305f\u6700\u5f8c\u306b\u3084\u3063\u3068\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n
<\/p>\n
\u30aa\u30d5\u30a3\u30b7\u30e3\u30eb\u306e\u624b\u9806\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u7d39\u4ecb\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n
\nAdding your own custom operating systems to the menu<\/a><\/p>\n
$ sudo kpartx -av image_you_want_to_convert.img
add map loop0p1 (252:5): 0 117187 linear \/dev\/loop0 1
add map loop0p2 (252:6): 0 3493888 linear \/dev\/loop0 118784
$ sudo mount \/dev\/mapper\/loop0p2 \/mnt
$ sudo sed -i ‘s\/^\\\/dev\\\/mmcblk\/#\/g’ \/mnt\/etc\/fstab
$ sudo mksquashfs \/mnt converted_image_for_berryboot.img -comp lzo -e lib\/modules
$ sudo umount \/mnt
$ sudo kpartx -d image_you_want_to_convert.img <\/p>\n<\/blockquote>\n\u5b9f\u969b\u306b\u3084\u3063\u3066\u307f\u308b\u3068\u3001\u307e\u3041\u3001\u3044\u308d\u3044\u308d\u3042\u308b\u306e\u306f\u3044\u3064\u3082\u306e\u3053\u3068\u3002<\/p>\n
\u30dd\u30a4\u30f3\u30c8\u306f\u3001\u30eb\u30fc\u30c8\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u76f4\u4e0b\u306e\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u3092\u5b9f\u614b\u306b\u3057\u3066\u3001\u9006\u5074\u304b\u3089\u5f35\u308a\u306a\u304a\u3059\u3053\u3068\uff01<\/strong>\u305d\u3046\u3057\u306a\u3044\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3001RAM \u30c7\u30a3\u30b9\u30af\u306e kernel \u304b\u3089\u3001\u52d5\u304b\u3059 img \u306e \u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u304c\u30de\u30a6\u30f3\u30c8\u3067\u304d\u307e\u305b\u3093\u3002\u5f8c\u307b\u3069\u3001\u624b\u9806\u3092\u3064\u3051\u3066\u304a\u304d\u307e\u3059\u3002\u6b21\u3084\u308b\u3068\u304d\u3001\u7d76\u5bfe\u5fd8\u308c\u308b\u81ea\u4fe1\u304c\u3042\u308b\u306e\u3067\u3002<\/p>\n
<\/p>\n
\u3068\u308a\u3042\u3048\u305a\u51fa\u6765\u305f\u306e\u3067\u753b\u50cf\u30e1\u30e2\u3092\u8cbc\u308a\u4ed8\u3051\u3002<\/p>\n
<\/p>\n
\u3067\u3001\u5404\u7a2e\u521d\u671f\u8a2d\u5b9a\u3092\u3059\u308c\u3070OK<\/p>\n
<\/p>\n
\u3082\u3046\u306d\u3001\u75b2\u308c\u307e\u3057\u305f\u3002\u304c\u3001ARM \u306e IoT \u30c7\u30d0\u30a4\u30b9\u306e\u30ce\u30a6\u30cf\u30a6\u304c\u8caf\u307e\u3063\u305f\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u5c11\u3057\u524d\u9032\u3002\u5404\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3082 ARM \u7528\u306e\u30aa\u30d5\u30a3\u30b7\u30e3\u30eb\u30a4\u30e1\u30fc\u30b8\u306e\u6e96\u5099\u3082\u3057\u3066\u304d\u3066\u3044\u308b\u308f\u3051\u3067\u3059\u3057\u3002\u91ce\u826f\u30a4\u30e1\u30fc\u30b8\u306f\u6016\u3044\u306e\u3067\u3001\u3068\u308a\u3042\u3048\u305a\u306f\u30aa\u30d5\u30a3\u30b7\u30e3\u30eb\u306e\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u6e80\u8db3\u3002<\/p>\n