Powered by SmartDoc

7.6 eMMC へのインストール再び々

  1. 再々インストール
    root@:~ # gpart destroy -F mmcsd1
    gpart: arg0 'mmcsd1': Invalid argument
    root@:~ # dd if=/boot/uboot/idbloader.img of=/dev/mmcsd1 \
        conv=sync bs=512 seek=64
    326+0 records in
    326+0 records out
    166912 bytes transferred in 0.297782 secs (560517 bytes/sec)
    root@:~ # dd if=/boot/uboot/u-boot.itb of=/dev/mmcsd1 conv=sync \
        bs=512 seek=16384
    1834+0 records in
    1834+0 records out
    939008 bytes transferred in 1.403675 secs (668964 bytes/sec)
    root@:~ # gpart create -s GPT mmcsd1
    mmcsd1 created
    root@:~ # gpart add -t efi -l efi -a 512k -s 50m -b 16m mmcsd1
    mmcsd1p1 added
    root@:~ # gpart bootcode -p /boot/boot1.efi -i 1 mmcsd1
    partcode written to mmcsd1p1
    root@:~ # gpart add -t freebsd-swap -s 8g -a 64k -l swapfs mmcsd1
    mmcsd1p2 added
    root@:~ # gpart add -t freebsd-ufs -a 64k -l rootfs mmcsd1
    mmcsd1p3 added
    root@:~ # newfs -L 'rootfs' /dev/mmcsd1p3
    /dev/mmcsd1p3: 111017.9MB (227364736 sectors) block size 32768, \
        fragment size 4096
    using 178 cylinder groups of 626.09MB, 20035 blks, 80256 inodes.
    super-block backups (for fsck_ffs -b #) at:
    192, 1282432, 2564672, 3846912, 5129152, 6411392, 7693632, \
        8975872, 10258112,
    11540352, 12822592, 14104832, 15387072, 16669312, 17951552, \
        19233792,
    20516032, 21798272, 23080512, 24362752, 25644992, 26927232, \
        28209472,
    29491712, 30773952, 32056192, 33338432, 34620672, 35902912, \
        37185152,
    38467392, 39749632, 41031872, 42314112, 43596352, 44878592, \
        46160832,
    47443072, 48725312, 50007552, 51289792, 52572032, 53854272, \
        55136512,
    56418752, 57700992, 58983232, 60265472, 61547712, 62829952, \
        64112192,
    65394432, 66676672, 67958912, 69241152, 70523392, 71805632, \
        73087872,
    74370112, 75652352, 76934592, 78216832, 79499072, 80781312, \
        82063552,
    83345792, 84628032, 85910272, 87192512, 88474752, 89756992, \
        91039232,
    92321472, 93603712, 94885952, 96168192, 97450432, 98732672, \
        100014912,
    101297152, 102579392, 103861632, 105143872, 106426112, 107708352, \
        108990592,
    110272832, 111555072, 112837312, 114119552, 115401792, 116684032, \
        117966272,
    119248512, 120530752, 121812992, 123095232, 124377472, 125659712, \
        126941952,
    128224192, 129506432, 130788672, 132070912, 133353152, 134635392, \
        135917632,
    137199872, 138482112, 139764352, 141046592, 142328832, 143611072, \
        144893312,
    146175552, 147457792, 148740032, 150022272, 151304512, 152586752, \
        153868992,
    155151232, 156433472, 157715712, 158997952, 160280192, 161562432, \
        162844672,
    164126912, 165409152, 166691392, 167973632, 169255872, 170538112, \
        171820352,
    173102592, 174384832, 175667072, 176949312, 178231552, 179513792, \
        180796032,
    182078272, 183360512, 184642752, 185924992, 187207232, 188489472, \
        189771712,
    191053952, 192336192, 193618432, 194900672, 196182912, 197465152, \
        198747392,
    200029632, 201311872, 202594112, 203876352, 205158592, 206440832, \
        207723072,
    209005312, 210287552, 211569792, 212852032, 214134272, 215416512, \
        216698752,
    217980992, 219263232, 220545472, 221827712, 223109952, 224392192, \
        225674432,
     226956672
    root@:~ # tunefs -N enable -a enable -t enable -L 'rootfs' \
        /dev/mmcsd1p3
    tunefs: POSIX.1e ACLs set
    tunefs: NFSv4 ACLs and POSIX.1e ACLs are mutually exclusive
    tunefs: issue TRIM to the disk set
    root@:~ # mount /dev/mmcsd1p3 /mnt
    root@:~ # tar -xpf /usr/freebsd-dist/kernel.txz -C /mnt
    root@:~ # tar -xpf /usr/freebsd-dist/base.txz -C /mnt
    root@:~ # cat /mnt/etc/fstab
    # Device	Mountpoint	FStype	Options Dump	Pass#
    /dev/mmcsd0p2	none		swap	sw	0	0
    /dev/mmcsd0p3	/		ufs	rw	1	1
    tmpfs		/tmp		tmpfs	rw,mode=1777	0	0
    devfs		/dev		devfs	rw	0	0
    root@:~ # cat > /mnt/etc/rc.conf
    defaultrouter="192.168.1.254"
    hostname="kazu.tfc"
    ifconfig_ue0="inet 192.168.1.65  netmask 255.255.255.0"
    saver="logo"
    sendmail_enable="YES"
    sshd_enable="YES"
    ntpd_enable="YES"
    usbd_enable="YES"
    usb_load="YES"
    root@:~ # cat > /mnt/etc/resolv.conf
    search	tfc
    nameserver	192.168.1.2
    nameserver	8.8.8.8
    nameserver	8.8.4.4
    root@:~ # cp /usr/share/zoneinfo/Asia/Tokyo /mnt/etc/localtime
    root@:~ # umount /mnt
    root@:~ # shutdown -p now
    
  2. だがローダーの起動中に頓挫
  3. Jsm氏のloader.confを入れて再起動
    hw.ncpu="6"
    hw.regulator.disable_unused=0
    
    # Delay in seconds before loading anything.
    loader_delay="1"
    
    # Delay in seconds before autobooting,
    autoboot_delay="10"
    
    # Multiple console (serial+efi gop) enabled.
    boot_verbose="NO"
    #boot_serial="YES"
    boot_multicons="YES"
    #beastie_disable="YES"
    
    # Configure USB OTG; see usb_template(4).
    # hw.usb.template=3
    # umodem_load="YES"
    
    #
    wmt_load="YES"
    uhid_load="YES"
    ums_load="YES"
    #EOF
  1. uefi(8)