at_ito
2016年11月6日 15時53分
Aramdillo-840で起動時間を短縮するためにユーザーランドをsquashfsにしてみました。 起動時にエラーが発生する等の問題が残っていますが、現時点の内容を本ブログで紹介します。
Armadillo-840の標準のユーザーランドでは起動時間が約30秒程度かかります。 そのうちNORフラッシュからRAMに展開するための時間がかなりを占めています。 そのため、ここではNORフラッシュに書き込まれたsquashfsをそのままmountするよう変更してみます。
1. ユーザーランドイメージの作成と書込み
Atmark Distで一度イメージを作成した後に、以下のコマンドを実行してromfs/etc/fstabを開いてください。
[atde ~/atmark-dist]$ editor romfs/etc/fstab
romfs/etc/fstabを以下のように修正してください。
/dev/mtdblock5 / squashfs defaults 0 1 proc /proc proc defaults 0 0 usbfs /proc/bus/usb usbfs defaults 0 0 sysfs /sys sysfs defaults 0 0 udev /dev tmpfs mode=0755 0 0 /dev/flashblk/firmware /opt/firmware squashfs defaults 0 0 /dev/flashblk/license /opt/license squashfs defaults 0 0
※: 修正は一行目のみです。
上記修正後に、以下のコマンドを実行してユーザーランドイメージを作成してください。
[atde ~/atmark-dist]$ cd romfs [atde ~/atmark-dist/romfs]$ mksquashfs ./ ../userland.img
上記で作成したuserland.imgを通常のユーザーランドイメージの書き込みと同じ手順でArmadilloのユーザーランドパーティションに書き込んでください。
2. 起動パラメータの設定
保守モードで起動し、以下のコマンドを実行し、起動パラメータの設定とLinuxの起動を行ってください。
hermit> setenv console=ttySC2,115200 noinitrd rootwait root=/dev/mtdblock5 hermit> boot
3. 起動ログ
起動するとログが以下のように表示され、ログインプロンプトが表示されます。
Uncompressing kernel.................................................................................................................................................................................done. Doing console=ttySC2,115200 Doing noinitrd Doing rootwait Doing root=/dev/mtdblock5 Booting Linux on physical CPU 0 Initializing cgroup subsys cpuset Initializing cgroup subsys cpu Linux version 3.4-at20+ (atmark@atde5) (gcc version 4.6.3 (Debian 4.6.3-14atmark1) ) #15 PREEMPT Thu Oct 27 17:49:43 JST 2016 CPU: ARMv7 Processor [412fc093] revision 3 (ARMv7), cr=10c53c7d CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache Machine: armadillo840 cma: CMA: reserved 64 MiB at 54000000 Memory policy: ECC disabled, Data cache writeback Built 1 zonelists in Zone order, mobility grouping on. Total pages: 227328 Kernel command line: console=ttySC2,115200 noinitrd rootwait root=/dev/mtdblock5 PID hash table entries: 4096 (order: 2, 16384 bytes) Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) allocated 2097152 bytes of page_cgroup please try 'cgroup_disable=memory' option if you don't want memory cgroups Memory: 384MB 512MB = 896MB total Memory: 830132k/830132k available, 87372k reserved, 0K highmem Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) vmalloc : 0xc0800000 - 0xff000000 (1000 MB) lowmem : 0x80000000 - 0xc0000000 (1024 MB) pkmap : 0x7fe00000 - 0x80000000 ( 2 MB) modules : 0x7f000000 - 0x7fe00000 ( 14 MB) .text : 0x80008000 - 0x8052e000 (5272 kB) .init : 0x8052e000 - 0x80554000 ( 152 kB) .data : 0x80554000 - 0x8058e7a0 ( 234 kB) .bss : 0x8058e7c4 - 0x805d8834 ( 297 kB) NR_IRQS:16 nr_irqs:16 16 sched_clock: 32 bits at 128 Hz, resolution 7812500ns, wraps every 3489660920ms Console: colour dummy device 80x30 sh_cmt_simple.10: used as clock source sh_cmt_simple.14: used for clock events sh_cmt_simple.14: used for periodic clock events Calibrating delay loop... 1576.53 BogoMIPS (lpj=6156288) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 512 Initializing cgroup subsys cpuacct Initializing cgroup subsys memory Initializing cgroup subsys devices Initializing cgroup subsys freezer Initializing cgroup subsys blkio CPU: Testing write buffer coherency: ok hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available Setting up static identity map for 0x403f6478 - 0x403f64ac devtmpfs: initialized dummy: NET: Registered protocol family 16 DMA: preallocated 256 KiB pool for atomic coherent allocations pfc: r8a7740_pfc handling gpio 0 -> 858 gpiochip_add: registered GPIOs 0 to 858 on device: r8a7740_pfc CON7: LCD extension board found. L310 cache controller enabled l2x0: 8 ways, CACHE_ID 0x410000c7, AUX_CTRL 0x42440000, Cache size: 262144 B hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers. hw-breakpoint: maximum watchpoint size is 4 bytes. bio: create slab <bio-0> at 0 sdhi0: 3300 mV sdhi1: 3300 mV SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb i2c-gpio i2c-gpio.2: using pins 106 (SDA) and 114 (SCL) i2c-sh_mobile i2c-sh_mobile.0: Runtime PM disabled, clock forced on. i2c-sh_mobile i2c-sh_mobile.0: I2C adapter 0 with bus speed 100000 Hz i2c-sh_mobile i2c-sh_mobile.1: Runtime PM disabled, clock forced on. i2c-sh_mobile i2c-sh_mobile.1: I2C adapter 1 with bus speed 100000 Hz Linux video capture interface: v2.00 Advanced Linux Sound Architecture Driver Version 1.0.25. Switching to clocksource sh_cmt_simple.10 sh_cmt_simple.14: used for oneshot clock events NET: Registered protocol family 2 IP route cache hash table entries: 32768 (order: 5, 131072 bytes) TCP established hash table entries: 131072 (order: 8, 1048576 bytes) TCP bind hash table entries: 65536 (order: 6, 262144 bytes) TCP: Hash tables configured (established 131072 bind 65536) TCP: reno registered UDP hash table entries: 512 (order: 1, 8192 bytes) UDP-Lite hash table entries: 512 (order: 1, 8192 bytes) NET: Registered protocol family 1 RPC: Registered named UNIX socket transport module. RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. Trying to unpack rootfs image as initramfs... rootfs image is not initramfs (junk in compressed archive); looks like an initrd Freeing initrd memory: 5656K audit: initializing netlink socket (disabled) type=2000 audit(0.234:1): initialized VFS: Disk quotas dquot_6.5.2 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) squashfs: version 4.0 (2009/01/31) Phillip Lougher NFS: Registering the id_resolver key type nfs4filelayout_init: NFSv4 File Layout Driver Registering... msgmni has been set to 1760 Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253) io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) pwm-backlight pwm-backlight.0: unable to request PWM for backlight platform pwm-backlight.0: Driver pwm-backlight requests probe deferral sh_mobile_lcdc_fb sh_mobile_lcdc_fb.0: Runtime PM disabled, clock forced on. sh_mobile_lcdc_fb sh_mobile_lcdc_fb.0: registered sh_mobile_lcdc_fb.0/mainlcd as 800x480 16bpp. sh_mobile_lcdc_fb sh_mobile_lcdc_fb.0: registered sh_mobile_lcdc_fb.0/overlay 0 as 800x480 32bpp. sh-dma-engine sh-dma-engine.0: Runtime PM disabled, clock forced on. sh-dma-engine sh-dma-engine.1: Runtime PM disabled, clock forced on. sh-dma-engine sh-dma-engine.2: Runtime PM disabled, clock forced on. sh-dma-engine sh-dma-engine.3: Runtime PM disabled, clock forced on. SuperH SCI(F) driver initialized sh-sci sh-sci.0: Runtime PM disabled, clock forced on. sh-sci.0: ttySC0 at MMIO 0xe6c40000 (irq = 132) is a scifa sh-sci sh-sci.1: Runtime PM disabled, clock forced on. sh-sci.1: ttySC1 at MMIO 0xe6c50000 (irq = 133) is a scifa sh-sci sh-sci.2: Runtime PM disabled, clock forced on. sh-sci.2: ttySC2 at MMIO 0xe6c60000 (irq = 134) is a scifa console [ttySC2] enabled sh-sci sh-sci.3: Runtime PM disabled, clock forced on. sh-sci.3: ttySC3 at MMIO 0xe6c70000 (irq = 135) is a scifa sh-sci sh-sci.4: Runtime PM disabled, clock forced on. sh-sci.4: ttySC4 at MMIO 0xe6c80000 (irq = 136) is a scifa sh-sci sh-sci.5: Runtime PM disabled, clock forced on. sh-sci.5: ttySC5 at MMIO 0xe6cb0000 (irq = 137) is a scifa sh-sci sh-sci.6: Runtime PM disabled, clock forced on. sh-sci.6: ttySC6 at MMIO 0xe6cc0000 (irq = 138) is a scifa sh-sci sh-sci.7: Runtime PM disabled, clock forced on. sh-sci.7: ttySC7 at MMIO 0xe6cd0000 (irq = 139) is a scifa sh-sci sh-sci.8: Runtime PM disabled, clock forced on. sh-sci.8: ttySC8 at MMIO 0xe6c30000 (irq = 140) is a scifb brd: module loaded loop: module loaded rmob_tpu_pwm rmob_tpu_pwm.0: Runtime PM disabled, clock forced on. rmob_tpu_pwm rmob_tpu_pwm.0: TPU PWM 2 (0/2) registered r8a7740_cec r8a7740_cec.0: Runtime PM disabled, clock forced on. physmap platform flash device: 08000000 at 04000000 physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000089 Chip ID 0x008967 Intel/Sharp Extended Query Table at 0x010A Intel/Sharp Extended Query Table at 0x010A Intel/Sharp Extended Query Table at 0x010A Intel/Sharp Extended Query Table at 0x010A Intel/Sharp Extended Query Table at 0x010A Using buffer write method Using auto-unlock on power-up/resume cfi_cmdset_0001: Erase suspend on write enabled Creating 6 MTD partitions on "physmap-flash.0": 0x000000000000-0x000000040000 : "bootloader" 0x000000040000-0x000000080000 : "config" 0x000000080000-0x0000000c0000 : "license" 0x0000000c0000-0x0000004c0000 : "firmware" 0x0000004c0000-0x0000008c0000 : "kernel" 0x0000008c0000-0x000008000000 : "userland" sh-eth sh-eth: Runtime PM disabled, clock forced on. sh_mii: probed Base address at 0xe9a00000, 00:11:0c:16:0e:cd, IRQ 142. pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB Ethernet driver usbcore: registered new interface driver pegasus usbcore: registered new interface driver asix usbcore: registered new interface driver smsc95xx ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver rmobile-ehci-driver rmobile-ehci-driver: R-Mobile EHCI rmobile-ehci-driver rmobile-ehci-driver: new USB bus registered, assigned bus number 1 rmobile-ehci-driver rmobile-ehci-driver: irq 266, io mem 0xc6701000 rmobile-ehci-driver rmobile-ehci-driver: USB 2.0 started, EHCI 1.00 hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver rmobile-ohci-driver rmobile-ohci-driver: R-Mobile OHCI rmobile-ohci-driver rmobile-ohci-driver: new USB bus registered, assigned bus number 2 rmobile-ohci-driver rmobile-ohci-driver: irq 266, io mem 0xc6700000 hub 2-0:1.0: USB hub found hub 2-0:1.0: 2 ports detected Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. mousedev: PS/2 mouse device common for all mice input: st1232-touchscreen as /devices/platform/i2c-sh_mobile.0/i2c-0/0-0055/input/input0 rtc-s35390a 2-0030: rtc core: registered rtc-s35390a as rtc0 i2c /dev entries driver uvcvideo: Unable to create debugfs directory usbcore: registered new interface driver uvcvideo USB Video Class driver (1.1.1) sh_mobile_wdt sh_mobile_wdt.0: Runtime PM disabled, clock forced on. device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com sh_mobile_sdhi sh_mobile_sdhi.0: Runtime PM disabled, clock forced on. sh_mobile_sdhi sh_mobile_sdhi.0: Platform OCR mask is ignored sh_mobile_sdhi sh_mobile_sdhi.0: mmc0 base at 0xe6850000 clock rate 99 MHz sh_mobile_sdhi sh_mobile_sdhi.1: Runtime PM disabled, clock forced on. sh_mobile_sdhi sh_mobile_sdhi.1: Platform OCR mask is ignored sh_mobile_sdhi sh_mobile_sdhi.1: mmc1 base at 0xe6860000 clock rate 99 MHz usbcore: registered new interface driver usbhid usbhid: USB HID core driver usbcore: registered new interface driver snd-usb-audio fsi-pcm-audio sh_fsi2: Runtime PM disabled, clock forced on. asoc: wm8978-hifi <-> fsia-dai mapping ok ip_tables: (C) 2000-2006 Netfilter Core Team TCP: cubic registered NET: Registered protocol family 17 VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 3 registered taskstats version 1 input: gpio-keys as /devices/platform/gpio-keys/input/input1 rtc-s35390a 2-0030: setting system clock to 2000-01-01 01:30:29 UTC (946690229) ALSA device list: #0: FSI2A-WM8978 VFS: Mounted root (squashfs filesystem) readonly on device 31:5. Freeing init memory: 152K mmc0: new high speed SDHC card at address b368 mmcblk0: mmc0:b368 SMI 7.51 GiB mmcblk0: p1 p2 Mounting proc: done Starting fsck for root filesystem. fsck 1.25 (20-Sep-2001) fsck: fsck.squashfs: not found fsck: Error 2 while executing fsck.squashfs for /dev/flashblk/userland Checking root filesystem: done Remounting root rw: done Mounting usbfs: done Mounting sysfs: done Mounting tmpfs on /dev: done Cleaning up system: rm: can't remove '/tmp': Read-only file system rm: can't remove '/var/lock': Read-only file system rm: can't remove '/var/run': Read-only file system mkdir: can't create directory '/tmp': File exists mkdir: can't create directory '/var/lock': File exists mkdir: can't create directory '/var/run': File exists /etc/init.d/rc: line 68: can't create /var/run/utmp: Read-only file system touch: /var/log/wtmp: Read-only file system touch: /var/log/messages: Read-only file system chmod: /var/run/utmp: No such file or directory chmod: /var/log/wtmp: No such file or directory chmod: /var/log/messages: No such file or directory failed /etc/init.d/rc: line 79: can't create /etc/issue: Read-only file system /etc/init.d/rc: line 80: can't create /etc/issue.net: Read-only file system /etc/init.d/rc: line 81: can't create /etc/issue: Read-only file system /etc/init.d/rc: line 82: can't create /etc/issue.net: Read-only file system /etc/init.d/rc: line 83: can't create /etc/issue: Read-only file system /etc/init.d/rc: line 84: can't create /etc/issue.net: Read-only file system Running local start scripts. Creating mtd devnode: done Loading /etc/config: failed Starting udevd: done Mounting devpts: done Changing file permissions: chmod: /etc/shadow: Read-only file system failed Configure /home/ftp: ln: /home/ftp/bin/ls: Read-only file system failed Starting syslogd: Jan 1 01:30:31 (none) syslog.info syslogd started: BusyBox v1.20.2 done Starting klogd: Jan 1 01:30:31 (none) user.notice kernel: klogd started: BusyBox v1.20.2 (2016-01-20 08:04:56 JST) Jan 1 01:30:31 (none) user.info kernel: Booting Linux on physical CPU 0 Jan 1 01:30:31 (none) user.info kernel: Initializing cgroup subsys cpuset Jan 1 01:30:31 (none) user.info kernel: Initializing cgroup subsys cpu Jan 1 01:30:31 (none) user.notice kernel: Linux version 3.4-at20+ (atmark@atde5) (gcc version 4.6.3 (Debian 4.6.3-14atmark1) ) #15 PREEMPT Thu Oct 27 17:49:43 JST 2016 Jan 1 01:30:31 (none) user.warn kernel: CPU: ARMv7 Processor [412fc093] revision 3 (ARMv7), cr=10c53c7d Jan 1 01:30:31 (none) user.warn kernel: CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache Jan 1 01:30:31 (none) user.warn kernel: Machine: armadillo840 Jan 1 01:30:31 (none) user.info kernel: cma: CMA: reserved 64 MiB at 54000000 Jan 1 01:30:31 (none) user.warn kernel: Memory policy: ECC disabled, Data cache writeback Jan 1 01:30:31 (none) user.debug kernel: On node 0 totalpages: 229376 Jan 1 01:30:31 (none) user.debug kernel: free_area_init_node: node 0, pgdat 8058dbd8, node_mem_map 805d9000 Jan 1 01:30:31 (none) user.debug kernel: Normal zone: 2048 pages used for memmap Jan 1 01:30:31 (none) user.debug kernel: Normal zone: 0 pages reserved Jan 1 01:30:31 (none) user.debug kernel: Normal zone: 227328 pages, LIFO batch:31 Jan 1 01:30:31 (none) user.debug kernel: pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 Jan 1 01:30:31 (none) user.debug kernel: pcpu-alloc: [0] 0 Jan 1 01:30:31 (none) user.warn kernel: Built 1 zonelists in Zone order, mobility grouping on. Total pages: 227328 Jan 1 01:30:31 (none) user.notice kernel: Kernel command line: console=ttySC2,115200 noinitrd rootwait root=/dev/mtdblock5 Jan 1 01:30:31 (none) user.info kernel: PID hash table entries: 4096 (order: 2, 16384 bytes) Jan 1 01:30:31 (none) user.info kernel: Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) Jan 1 01:30:31 (none) user.info kernel: Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) Jan 1 01:30:31 (none) user.info kernel: allocated 2097152 bytes of page_cgroup Jan 1 01:30:31 (none) user.info kernel: please try 'cgroup_disable=memory' option if you don't want memory cgroups Jan 1 01:30:31 (none) user.info kernel: Memory: 384MB 512MB = 896MB total Jan 1 01:30:31 (none) user.notice kernel: Memory: 830132k/830132k available, 87372k reserved, 0K highmem Jan 1 01:30:31 (none) user.notice kernel: Virtual kernel memory layout: Jan 1 01:30:31 (none) user.notice kernel: vector : 0xffff0000 - 0xffff1000 ( 4 kB) Jan 1 01:30:31 (none) user.notice kernel: fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) Jan 1 01:30:31 (none) user.notice kernel: vmalloc : 0xc0800000 - 0xff000000 (1000 MB) Jan 1 01:30:31 (none) user.notice kernel: lowmem : 0x80000000 - 0xc0000000 (1024 MB) Jan 1 01:30:31 (none) user.notice kernel: pkmap : 0x7fe00000 - 0x80000000 ( 2 MB) Jan 1 01:30:31 (none) user.notice kernel: modules : 0x7f000000 - 0x7fe00000 ( 14 MB) Jan 1 01:30:31 (none) user.notice kernel: .text : 0x80008000 - 0x8052e000 (5272 kB) Jan 1 01:30:31 (none) user.notice kernel: .init : 0x8052e000 - 0x80554000 ( 152 kB) Jan 1 01:30:31 (none) user.notice kernel: .data : 0x80554000 - 0x8058e7a0 ( 234 kB) Jan 1 01:30:31 (none) user.notice kernel: .bss : 0x8058e7c4 - 0x805d8834 ( 297 kB) Jan 1 01:30:31 (none) user.info kernel: NR_IRQS:16 nr_irqs:16 16 Jan 1 01:30:31 (none) user.info kernel: sched_clock: 32 bits at 128 Hz, resolution 7812500ns, wraps every 3489660920ms Jan 1 01:30:31 (none) user.info kernel: Console: colour dummy device 80x30 Jan 1 01:30:31 (none) user.info kernel: sh_cmt_simple.10: used as clock source Jan 1 01:30:31 (none) user.info kernel: sh_cmt_simple.14: used for clock events Jan 1 01:30:31 (none) user.info kernel: sh_cmt_simple.14: used for periodic clock events Jan 1 01:30:31 (none) user.info kernel: Calibrating delay loop... 1576.53 BogoMIPS (lpj=6156288) Jan 1 01:30:31 (none) user.info kernel: pid_max: default: 32768 minimum: 301 Jan 1 01:30:31 (none) user.info kernel: Mount-cache hash table entries: 512 Jan 1 01:30:31 (none) user.info kernel: Initializing cgroup subsys cpuacct Jan 1 01:30:31 (noneJan 1 01:30:31 (none) user.infoJan 1 01:30:31 (none) user.infoJan 1 01:30:31 (none) user.warn kernel: Dquot-cache hashJan 1 01:30:31 (none) user.infoJan 1 01:30:31 (none) user.infodoneJan 1 01:30:31 (none) user.notice kernel: Creating 6 MTD partitions on "physmap-flash.0": Jan 1 01:30:31 (none) user.notice kernel: 0x000000000000-0x000000040000 : "bootloader" Jan 1 01:30:31 (none) user.notice kernel: 0x000000040000-0x000000080000 : "config" Jan 1 01:30:31 (none) user.notice kernel: 0x000000080000-0x0000000c0000 : "license" Jan 1 01:30:31 (none) user.notice kernel: 0x0000000c0000-0x0000004c0000 : "firmware" Jan 1 01:30:31 (none) user.notice kernel: 0x0000004c0000-0x0000008c0000 : "kernel" Jan 1 01:30:31 (none) user.notice kernel: 0x0000008c0000-0x000008000000 : "userland" Jan 1 01:30:31 (none) user.info kernel: sh-eth sh-eth: Runtime PM disabled, clock forced on. Jan 1 01:30:31 (none) user.info kernel: sh_mii: probed Jan 1 01:30:31 (none) user.info kernel: Base address at 0xe9a00000, 00:11:0c:16:0e:cd, IRQ 142. Jan 1 01:30:31 (none) user.info kernel: pegasus: v0.6.14 (2006/09/27), Pegasus/Pegasus II USB Ethernet driver Jan 1 01:30:31 (none) user.info kernel: usbcor Jan 1 01:30:31 (none) user.info kernel: hub 1-0:1.0: 2 ports detected Jan 1 01:30:31 (none) user.info kernel: ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver Jan 1 01:30:31 (none) user.info kernel: rmobile-ohci-driver rmobile-ohci-driver: R-Mobile OHCI Jan 1 01:30:31 (none) user.info kernel: rmobile-ohci-driver rmobile-ohci-driver: new USB bus registered, assigned bus number 2 Jan 1 01:30:31 (none) user.info kernel: rmobile-ohci-driver rmobile-ohci-drJan 1 01:30:31 (none) user.infoJan 1 01:30:31 (none) user.infoMounting firmware on /opt/firmware: Jan 1 01:30:31 (none) user.info kernel: Freeing init memory: 152K Jan 1 01:30:31 (none) user.info kernel: mmc0: new high speed SDHC card at address b368 Jan 1 01:30:31 (none) user.info kernel: mmcblk0: mmc0:b368 SMI 7.51 GiB Jan 1 01:30:31 (none) user.info kernel: mmcblk0: p1 p2 done Mounting license on /opt/license: done Mounting tmpfs on /tmp, /var/tmp: Jan 1 01:30:31 (none) daemon.err udevd-event[1639]: run_program: exec of program '/etc/config/configure-fbmode.sh' failed done Mounting ramfs on /home/ftp/pub: done mkdir: can't create directory '/lib/firmware': Read-only file system Creating decoder firmware symlink: ln: /lib/firmware/acm-decoder.fw: No such file or directory failed Creating encoder firmware symlink: ln: /lib/firmware/acm-encoder.fw: No such file or directory failed Setting hostname: hostname: can't open '/etc/HOSTNAME': No such file or directory failed Starting PVR Server: done Starting basic firewall: done Configuring network interfaces: ifup: can't open '/etc/network/interfaces': No such file or directory failed Starting inetd: done Creating avahi.services: mkdir: can't create directory '/etc/avahi/services': Read-only file system /etc/init.d/avahi-services: line 9: can't create /etc/avahi/services/http.service: nonexistent directory /etc/init.d/avahi-services: line 20: can't create /etc/avahi/services/at-admin.service.disabled: nonexistent directory /etc/init.d/avahi-services: line 32: can't create /etc/avahi/services/camera.service.disabled: nonexistent directory /etc/init.d/avahi-services: line 44: can't create /etc/avahi/services/ssh.service.disabled: nonexistent directory failed Starting avahi.daemon: Jan 1 01:30:34 (none) daemon.err avahi-daemon[3173]: mkdir("/var/run/avahi-daemon/"): Read-only file system Timeout reached while wating for return value Could not receive return value from daemon process. done Starting lighttpd: 2000-01-01 01:30:54: (../../src/server.c.608) opening pid-file failed: /var/run/lighttpd.pid Read-only file system failed mkdir: can't create directory '/var/empty': Read-only file system Starting sshd: failed (sshd: you will be available to use after run '/etc/init.d/sshd keygen') Jan 1 01:30:55 (none) daemon.info init: starting pid 3192, tty '': '/sbin/getty -L 115200 ttySC2 vt102' (none) login:
付録. 課題
起動時のログを見ると、いくつかの起動スクリプトでファイルを更新できないというエラーが発生しています。 そのため、一部のディレクトリをtmpfsでマウントしたり、起動スクリプトを修正する必要があります。 各環境に合わせてカスタマイズして使用してみてください。