がすべてです
これをやったのが以下です
[root@T3500 fuji]# dd if=/dev/zero of=/dev/sdd bs=1M count=8
8+0 records in
8+0 records out
8388608 bytes (8.4 MB, 8.0 MiB) copied, 2.05265 s, 4.1 MB/s
[root@T3500 fuji]# fdisk /dev/sdd
Welcome to fdisk (util-linux 2.29.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0x096e27d0.
Command (m for help): o
Created a new DOS disklabel with disk identifier 0xb076860e.
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p):
Using default response p.
Partition number (1-4, default 1):
First sector (2048-31422463, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-31422463, default 31422463):
Created a new partition 1 of type 'Linux' and of size 15 GiB.
Command (m for help): p
Disk /dev/sdd: 15 GiB, 16088301568 bytes, 31422464 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: 0xb076860e
Device Boot Start End Sectors Size Id Type
/dev/sdd1 2048 31422463 31420416 15G 83 Linux
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
[root@T3500 fuji]# mkfs.ext4 -O ^metadata_csum,^64bit /dev/sdd1
mke2fs 1.43.4 (31-Jan-2017)
Creating filesystem with 3927552 4k blocks and 983040 inodes
Filesystem UUID: e60aab0e-bc38-4564-9ba3-32092092b7f5
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208
Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done
[root@T3500 fuji]# mkdir root
[root@T3500 fuji]# mount /dev/sdd1 root
[root@T3500 fuji]# wget http://archlinuxarm.org/os/ArchLinuxARM-odroid-c2-latest.tar.gz
--2017-07-16 03:11:54-- http://archlinuxarm.org/os/ArchLinuxARM-odroid-c2-latest.tar.gz
Resolving archlinuxarm.org... 50.116.36.110, 2600:3c02::f03c:91ff:feae:a51f
Connecting to archlinuxarm.org|50.116.36.110|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://archlinuxarm.org/os/ArchLinuxARM-odroid-c2-latest.tar.gz [following]
--2017-07-16 03:11:55-- https://archlinuxarm.org/os/ArchLinuxARM-odroid-c2-latest.tar.gz
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Connecting to archlinuxarm.org|50.116.36.110|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://os.archlinuxarm.org/os/ArchLinuxARM-odroid-c2-latest.tar.gz [following]
--2017-07-16 03:11:56-- http://os.archlinuxarm.org/os/ArchLinuxARM-odroid-c2-latest.tar.gz
Resolving os.archlinuxarm.org... 50.116.36.110
Connecting to os.archlinuxarm.org|50.116.36.110|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://tw.mirror.archlinuxarm.org/os/ArchLinuxARM-odroid-c2-latest.tar.gz [following]
--2017-07-16 03:11:56-- http://tw.mirror.archlinuxarm.org/os/ArchLinuxARM-odroid-c2-latest.tar.gz
Resolving tw.mirror.archlinuxarm.org... 163.13.240.201
Connecting to tw.mirror.archlinuxarm.org|163.13.240.201|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 312656585 (298M) [application/x-gzip]
Saving to: 'ArchLinuxARM-odroid-c2-latest.tar.gz'
ArchLinuxARM-odroid-c2-latest.tar.gz 100%[=============================================================================>] 298.17M 613KB/s in 7m 37s
2017-07-16 03:19:33 (669 KB/s) - 'ArchLinuxARM-odroid-c2-latest.tar.gz' saved [312656585/312656585]
[root@T3500 fuji]# bsdtar -xpf ArchLinuxARM-odroid-c2-latest.tar.gz -C root
[root@T3500 fuji]# cd root/boot
[root@T3500 boot]# ./sd_fusing.sh /dev/sdd
442+0 records in
442+0 records out
442 bytes copied, 0.0554442 s, 8.0 kB/s
96+0 records in
96+0 records out
49152 bytes (49 kB, 48 KiB) copied, 0.193542 s, 254 kB/s
1248+0 records in
1248+0 records out
638976 bytes (639 kB, 624 KiB) copied, 0.541602 s, 1.2 MB/s
Successfully wrote U-Boot to /dev/sdd
[root@T3500 boot]# cd ../..
[root@T3500 fuji]# cat root/boot/boot.ini
ODROIDC2-UBOOT-CONFIG
# Possible screen resolutions
# Uncomment only a single Line! The line with setenv written.
# At least one mode must be selected.
# Custom modeline!
# To use custom modeline you need to disable all the below resolutions
# and setup your own!
# For more information check our wiki:
# http://odroid.com/dokuwiki/doku.php?id=en:c2_hdmi_autosetting
# Example below:
# setenv m "custombuilt"
# setenv modeline "1920,1200,154000,74040,60,1920,1968,2000,2080,1200,1202,1208,1235,1,0,1"
# Auto Detection of Monitor settings based on your Screen information
# See: http://odroid.com/dokuwiki/doku.php?id=en:c2_auto_detect_display
setenv display_autodetect "true"
# 480 Lines (720x480)
# setenv m "480i60hz" # Interlaced 60Hz
# setenv m "480i_rpt" # Interlaced for Rear Projection Televisions 60Hz
# setenv m "480p60hz" # 480 Progressive 60Hz
# setenv m "480p_rpt" # 480 Progressive for Rear Projection Televisions 60Hz
# 576 Lines (720x576)
# setenv m "576i50hz" # Interlaced 50Hz
# setenv m "576i_rpt" # Interlaced for Rear Projection Televisions 50Hz
# setenv m "576p50hz" # Progressive 50Hz
# setenv m "576p_rpt" # Progressive for Rear Projection Televisions 50Hz
# 720 Lines (1280x720)
# setenv m "720p50hz" # 50Hz
# setenv m "720p60hz" # 60Hz
# 1080 Lines (1920x1080)
# setenv m "1080i60hz" # Interlaced 60Hz
setenv m "1080p60hz" # Progressive 60Hz
# setenv m "1080i50hz" # Interlaced 50Hz
# setenv m "1080p50hz" # Progressive 50Hz
# setenv m "1080p24hz" # Progressive 24Hz
# 4K (3840x2160)
# setenv m "2160p30hz" # Progressive 30Hz
# setenv m "2160p25hz" # Progressive 25Hz
# setenv m "2160p24hz" # Progressive 24Hz
# setenv m "smpte24hz" # Progressive 24Hz SMPTE
# setenv m "2160p50hz" # Progressive 50Hz
# setenv m "2160p60hz" # Progressive 60Hz
# setenv m "2160p50hz420" # Progressive 50Hz with YCbCr 4:2:0 (Requires TV/Monitor that supports it)
# setenv m "2160p60hz420" # Progressive 60Hz with YCbCr 4:2:0 (Requires TV/Monitor that supports it)
### VESA modes ###
# setenv m "640x480p60hz"
# setenv m "800x480p60hz"
# setenv m "480x800p60hz"
# setenv m "800x600p60hz"
# setenv m "1024x600p60hz"
# setenv m "1024x768p60hz"
# setenv m "1280x800p60hz"
# setenv m "1280x1024p60hz"
# setenv m "1360x768p60hz"
# setenv m "1440x900p60hz"
# setenv m "1600x900p60hz"
# setenv m "1680x1050p60hz"
# setenv m "1600x1200p60hz"
# setenv m "1920x1200p60hz"
# setenv m "2560x1080p60hz"
# setenv m "2560x1440p60hz"
# setenv m "2560x1600p60hz"
# setenv m "3440x1440p60hz"
# HDMI BPP Mode
setenv m_bpp "32"
# setenv m_bpp "24"
# setenv m_bpp "16"
# HDMI DVI/VGA modes
# By default its set to HDMI, if needed change below.
# Uncomment only a single Line.
# setenv vout "dvi"
# setenv vout "vga"
# HDMI HotPlug Detection control
# Allows you to force HDMI thinking that the cable is connected.
# true = HDMI will believe that cable is always connected
# false = will let board/monitor negotiate the connection status
setenv hpd "true"
# setenv hpd "false"
# Monitor output
# Controls if HDMI PHY should output anything to the monitor
setenv monitor_onoff "false" # true or false
# Server Mode (aka. No Graphics)
# Setting nographics to 1 will disable all video subsystem
# This mode is ideal of server type usage. (Saves ~300Mb of RAM)
setenv nographics "0"
# Meson Timer
# 1 - Meson Timer
# 0 - Arch Timer
# Using meson_timer improves the video playback however it breaks KVM (virtualization).
# Using arch timer allows KVM/Virtualization to work however you'll experience poor video
setenv mesontimer "1"
# UHS (Ultra High Speed) MicroSD mode enable/disable
setenv disableuhs "false"
# MicroSD Card Detection enable/disable
# Force the MMC controlled to believe that a card is connected.
setenv mmc_removable "true"
# USB Multi WebCam tweak
# Only enable this if you use it.
setenv usbmulticam "false"
# Disable/Enable ODROID-VU7 Touchscreen
setenv disable_vu7 "true"
# Default Console Device Setting
setenv condev "console=ttyS0,115200n8 console=tty0" # on both
# CPU Frequency / Cores control
###########################################
### WARNING!!! WARNING!!! WARNING!!!
# Before changing anything here please read the wiki entry:
# http://odroid.com/dokuwiki/doku.php?id=en:c2_set_cpu_freq
#
# MAX CPU's
# setenv maxcpus "1"
# setenv maxcpus "2"
# setenv maxcpus "3"
setenv maxcpus "4"
# MAX Frequency
# setenv max_freq "2016" # 2.016GHz
# setenv max_freq "1944" # 1.944GHz
# setenv max_freq "1944" # 1.944GHz
# setenv max_freq "1920" # 1.920GHz
# setenv max_freq "1896" # 1.896GHz
# setenv max_freq "1752" # 1.752GHz
# setenv max_freq "1680" # 1.680GHz
# setenv max_freq "1656" # 1.656GHz
setenv max_freq "1536" # 1.536GHz
###########################################
# Boot Arguments
if test "${display_autodetect}" = "true"; then usb pwren; hdmitx edid; fi
if test "${m}" = "custombuilt"; then setenv cmode "modeline=${modeline}"; fi
if test "${disable_vu7}" = "false"; then setenv hid_quirks "usbhid.quirks=0x0eef:0x0005:0x0004"; fi
setenv bootargs "root=/dev/mmcblk0p1 rootwait rw ${condev} no_console_suspend hdmimode=${m} ${cmode} m_bpp=${m_bpp} vout=${vout} fsck.repair=yes net.ifnames=0 elevator=noop disablehpd=${hpd} max_freq=${max_freq} maxcpus=${maxcpus} monitor_onoff=${monitor_onoff} disableuhs=${disableuhs} mmc_removable=${mmc_removable} usbmulticam=${usbmulticam} ${hid_quirks}"
# Booting
setenv loadaddr "0x11000000"
setenv dtb_loadaddr "0x1000000"
setenv initrd_loadaddr "0x13000000"
load mmc 0:1 ${loadaddr} /boot/Image
load mmc 0:1 ${dtb_loadaddr} /boot/dtbs/meson64_odroidc2.dtb
fdt addr ${dtb_loadaddr}
if test "${mesontimer}" = "0"; then fdt rm /meson_timer; fdt rm /cpus/cpu@0/timer; fdt rm /cpus/cpu@1/timer; fdt rm /cpus/cpu@2/timer; fdt rm /cpus/cpu@3/timer; fi
if test "${mesontimer}" = "1"; then fdt rm /timer; fi
if test "${nographics}" = "1"; then fdt rm /reserved-memory; fdt rm /aocec; fi
if test "${nographics}" = "1"; then fdt rm /meson-fb; fdt rm /amhdmitx; fdt rm /picdec; fdt rm /ppmgr; fi
if test "${nographics}" = "1"; then fdt rm /meson-vout; fdt rm /mesonstream; fdt rm /meson-fb; fi
if test "${nographics}" = "1"; then fdt rm /deinterlace; fdt rm /codec_mm; fi
load mmc 0:1 ${initrd_loadaddr} /boot/initramfs-linux.img
booti ${loadaddr} ${initrd_loadaddr}:${filesize} ${dtb_loadaddr}
[root@T3500 fuji]# umount root
[root@T3500 fuji]# fdisk -l /dev/sddd
fdisk: cannot open /dev/sddd: No such file or directory
[root@T3500 fuji]# fdisk -l /dev/sdd
Disk /dev/sdd: 15 GiB, 16088301568 bytes, 31422464 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: 0xb0760000
Device Boot Start End Sectors Size Id Type
/dev/sdd1 2048 31422463 31420416 15G 83 Linux
以上で
archそのものは 動くが以下をしても
Xはだめだ。
# ssh alarm@192.168.80.118
alarm@192.168.80.118's password:
[alarm@alarm ~]$ su
Password:
[root@alarm alarm]#
- nano /etc/locale.gen の一番上に次を書き加える
en_US.UTF-8 UTF-8
ja_JP.UTF-8 UTF-8
そして locale-gen
を実行してロケールを生成rm /etc/localtime
ln -s /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
pacman -Sy net-tools dnsutils openssh dialog wpa_supplicant
pacman -S openntpd
systemctl enable openntpd
systemctl start openntpd
でまず 時間合わせをします。
pacman -S xorg xorg-xinit xfce4
nano .xinitrc
startxfce4
pacman -S otf-ipafont
pacman -S fcitx-im fcitx-configtool fcitx-mozc
nano .xprofile を
export XMODIFIERS=@im=fcitx
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
0 件のコメント:
コメントを投稿