Armadilloフォーラム

Armadillo-840にADTE6で構築したKernelなどが使えますか?

sunzone

2019年4月24日 16時00分

ADTE5のGCCを4.6から4.9以上アップグレードしたいです。
https://github.com/damonbarry/azure-iot-sdks-1/blob/master/doc/get_star…
これを参照して、ATDE5にDebianのバージョンをjessieにアップグレードし、gcc-armelを4.9にアップロードしました。
確認したいのは:
1.公式のromfs-a840-v1.14.img.gz、linux-a840-v1.21.bin.gzなどの代わりに、Atmark-distをgcc-armel4.9版で再コンパイル必要ありますか?
2.公式のromfs-a840-v1.14.img.gz、linux-a840-v1.21.bin.gzはADTE5にgcc-armhf 4.6でコンパイルされた物でしょうか?
3.Armadillo-840にADTE6以上の環境で構築したKernelなどが使えますか?
ご教授お願いします。

コメント

at_mizo

2019年4月24日 16時20分

溝渕です。

前提として、Armadillo-840の推奨開発環境はATDE5です。

> 1.公式のromfs-a840-v1.14.img.gz、linux-a840-v1.21.bin.gzなどの代わりに、Atmark-distをgcc-armel4.9版で再コンパイル必要ありますか?

恐らく不要と思います。

> 2.公式のromfs-a840-v1.14.img.gz、linux-a840-v1.21.bin.gzはADTE5にgcc-armhf 4.6でコンパイルされた物でしょうか?

ご推測の通りです。ATDE5を利用してコンパイルしています。

> 3.Armadillo-840にADTE6以上の環境で構築したKernelなどが使えますか?

恐らく使えると思いますが、動作未確認です。コンパイラのバージョンによっ
ては、ソースコードの修正が必要になる場合もあります。

sunzone

2019年5月7日 15時22分

溝渕様

ご回答ありがとうございます。

前回質問3について、
gcc4.9版のQtを利用したいので、ADTE6環境でAtmark-distをコンパイルしてみました。
makeの際に下記のようなエラーが出ました。

In file included from expect-5.43.0/exp_main_exp.c:16:0:
expect-5.43.0/expect_tcl.h:39:54: error: unknown type name ‘Tcl_Obj’
 EXTERN int exp_interpreter _ANSI_ARGS_((Tcl_Interp *,Tcl_Obj *));
                                                      ^
expect-5.43.0/expect_tcl.h:52:35: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘TCL_VARARGS’
 EXTERN void exp_error _ANSI_ARGS_(TCL_VARARGS(Tcl_Interp *,interp));
                                   ^
expect-5.43.0/exp_main_exp.c: In function ‘main’:
expect-5.43.0/exp_main_exp.c:28:2: warning: implicit declaration of function ‘Tcl_FindExecutable’ [-Wimplicit-function-declaration]
  Tcl_FindExecutable(argv[0]);
  ^
expect-5.43.0/exp_main_exp.c:30:2: warning: implicit declaration of function ‘Tcl_Init’ [-Wimplicit-function-declaration]
  if (Tcl_Init(interp) == TCL_ERROR) {
  ^
expect-5.43.0/exp_main_exp.c:44:3: warning: implicit declaration of function ‘exp_interpreter’ [-Wimplicit-function-declaration]
   (void) exp_interpreter(interp,(Tcl_Obj *)0);
   ^
expect-5.43.0/exp_main_exp.c:44:34: error: ‘Tcl_Obj’ undeclared (first use in this function)
   (void) exp_interpreter(interp,(Tcl_Obj *)0);
                                  ^
expect-5.43.0/exp_main_exp.c:44:34: note: each undeclared identifier is reported only once for each function it appears in
expect-5.43.0/exp_main_exp.c:44:43: error: expected expression before ‘)’ token
   (void) exp_interpreter(interp,(Tcl_Obj *)0);
                                           ^
expect-5.43.0/exp_main_exp.c:56:2: error: too few arguments to function ‘Tcl_Eval’
  Tcl_Eval(interp, buffer); 
  ^
In file included from expect-5.43.0/exp_main_exp.c:16:0:
/home/atmark/work/atmark-dist-20180330/include/tcl.h:279:13: note: declared here
 EXTERN int  Tcl_Eval _ANSI_ARGS_((Tcl_Interp *interp, char *cmd,
             ^
Makefile:40: recipe for target 'exp_main_exp.o' failed
make[2]: *** [exp_main_exp.o] Error 1
make[2]: Leaving directory '/home/atmark/work/atmark-dist-20180330/user/expect'
Makefile:434: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/atmark/work/atmark-dist-20180330/user'
Makefile:320: recipe for target 'subdirs' failed
make: *** [subdirs] Error 1

何か解決方法がございましたら、ご教示お願いします。

よろしくお願いいたします。

at_mizo

2019年5月7日 15時52分

溝渕です。

> gcc4.9版のQtを利用したいので、ADTE6環境でAtmark-distをコンパイルしてみました。

ビルドしたいのはLinuxカーネルではなかったのですね。すみません、読み違えていました。

> makeの際に下記のようなエラーが出ました。

クロスライブラリの未インストール、またはバージョン違いによるエラーだと思います。

以下はバージョン違いによるAPI変更の為に発生しているエラーと思います。
これらは1つずつ修正していくか、該当パッケージを手動でjessieバージョン
にアップグレードする必要がある為、簡単には修正できないかと思います。

> expect-5.43.0/exp_main_exp.c:56:2: error: too few arguments to function ‘Tcl_Eval’
> Tcl_Eval(interp, buffer);
> ^

sunzone

2019年5月7日 17時02分

溝渕様

お世話になっております。

>クロスライブラリの未インストール、またはバージョン違いによるエラーだと思います。
私もそう思いますので、下記ライブラリをインストールしてみました。

sudo apt-get install tcl-dev
sudo apt-get install tcl-dev:armhf
 

再ビルドしたら、同じエラーでした。

ソースを調べみたら、
exp_main_exp.cはatmark-dist-20180330/include/tcl.hを依存し、
atmark-dist-20180330/include/tcl.hはmakeの際に、
atmark-dist-20180330/user/tinytcl/tcl.hからコピーされた物でした。
なお、OS環境にインストールしたtcl-devライブラリ依存しないと推測しています。

AtmarkDist古いでも最新でもuser/tinytcl/tcl.hにどちらにもTcl_Objがありませんでした。

参照:http://lists.atmark-techno.com/pipermail/armadillo/2010-September/00586…

at_mizo

2019年5月7日 17時17分

溝渕です。

> ソースを調べみたら、
> exp_main_exp.cはatmark-dist-20180330/include/tcl.hを依存し、
> atmark-dist-20180330/include/tcl.hはmakeの際に、
> atmark-dist-20180330/user/tinytcl/tcl.hからコピーされた物でした。
> なお、OS環境にインストールしたtcl-devライブラリ依存しないと推測しています。
>
> AtmarkDist古いでも最新でもuser/tinytcl/tcl.hにどちらにもTcl_Objがありませんでした。

エラーが発生しているのは、expect-5.43.0で、ソースは、user/expect/expect-5.43.0にあります。

恐らく利用されているヘッダは、atde5にインストールされた/usr/arm-linux-gnueabihf/include/内にあるものと思います。

sunzone

2019年5月8日 10時30分

溝渕様

お世話になっております。

公式のromfs-a840-v1.14.img.gz、linux-a840-v1.21.bin.gzのソースコードは何バージョンでしょうか?
或いはお勧めコンパイル確認済みのソースコードがございますか。
参照:https://download.atmark-techno.com/armadillo-840/source/

よろしくお願いいたします。

at_mizo

2019年5月8日 10時49分

溝渕です。

最新のイメージ/ソースについては、以下のページが見やすいかと思います。

[ユーザーズサイト - Armadillo-840 製品ソフトウェア]
https://users.atmark-techno.com/armadillo-840/software

> 公式のromfs-a840-v1.14.img.gz、linux-a840-v1.21.bin.gzのソースコードは何バージョンでしょうか?

ユーザーランドイメージv1.14(romfs-a840-v1.14.img.gz)のソースは、atmark-dist v20180330(atmark-dist-20180330.tar.gz)です。
Linuxカーネルイメージv1.21(linux-a840-v1.21.bin.gz)のソースは、Linuxカーネルv3.4-at26(linux-3.4-at26.tar.gz)です。

> 或いはお勧めコンパイル確認済みのソースコードがございますか。

ユーザーズサイトで公開している最新のソースコードのご利用をお勧めします。
これらは全てコンパイル/動作確認済みです。

sunzone

2019年5月9日 14時16分

溝渕様

お世話になっております。

makeの時、下記エラー内容が出ました。

if [ "" = "y" ]; then genext2fs --squash-uids --number-of-inodes  --size-in-blocks  --root /home/atmark/work/atmark-dist-20180330/romfs --devtable ext2_devtable.txt /home/atmark/work/atmark-dist-20180330/images/romfs.img; else /bin/sh /home/atmark/work/atmark-dist-20180330/vendors/AtmarkTechno/Common/tools/genfs_ext2.sh "--squash-uids --root /home/atmark/work/atmark-dist-20180330/romfs --devtable ext2_devtable.txt /home/atmark/work/atmark-dist-20180330/images/romfs.img" > /dev/null; fi
Segmentation fault
Makefile:239: recipe for target 'image' failed
make[1]: *** [image] Error 139
make[1]: Leaving directory '/home/atmark/work/atmark-dist-20180330/vendors/AtmarkTechno/Armadillo-840'
Makefile:272: recipe for target 'image' failed
make: *** [image] Error 2

恐らく最後image作成のスデップですが、何か解決方法はございますか?

at_mizo

2019年5月9日 14時21分

溝渕です。

> makeの時、下記エラー内容が出ました。

エラーを発生させるために必要な情報をいただけますか?

ビルド環境やソース、コンフィギュレーション等の情報が欲しいです。

sunzone

2019年5月10日 10時32分

溝渕様

ソースに指定した--size-in-blocksが大きすぎの原因でした。
無事にatmark-distのmake成功しました。
本当にありがとうございました。

sunzone

2019年5月10日 18時18分

溝渕様

お世話になっております。

ビルドした環境をSDカードに入れたら、ボートが起動できませんでした。
確認ですが、romfsとlinuxをビルドしました。
ブートディスクもビルドする必要があるんでしょうか?

ログ:

Hermit-At v3.11.0 (Armadillo-840/mmcsd) compiled at 08:31:27, Mar 30 2018
Uncompressing  kernel..................................................................................................................................................................................done.
Doing console=ttySC2,115200
Doing noinitrd
Doing rootwait
Doing root=/dev/mmcblk0p2
Doing mem=496M
Doing memmap=16M$0x5f000000
Booting Linux on physical CPU 0
Initializing cgroup subsys cpuset
Initializing cgroup subsys cpu
Linux version 3.4-at26 (atmark@atde5) (gcc version 4.6.3 (Debian 4.6.3-14atmark1) ) #1 PREEMPT Wed Apr 4 15:28:52 JST 2018
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: 125984
Kernel command line: console=ttySC2,115200 noinitrd rootwait root=/dev/mmcblk0p2 mem=496M memmap=16M$0x5f000000
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
allocated 1015808 bytes of page_cgroup
please try 'cgroup_disable=memory' option if you don't want memory cgroups
Memory: 496MB = 496MB total
Memory: 425112k/425112k available, 82792k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0x9f800000 - 0xff000000   (1528 MB)
    lowmem  : 0x80000000 - 0x9f000000   ( 496 MB)
    pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)
    modules : 0x7f000000 - 0x7fe00000   (  14 MB)
      .text : 0x80008000 - 0x80535000   (5300 kB)
      .init : 0x80535000 - 0x8055b000   ( 152 kB)
      .data : 0x8055c000 - 0x80597860   ( 239 kB)
       .bss : 0x80597884 - 0x805e18f4   ( 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 0x403fbe60 - 0x403fbe94
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: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP: reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 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: 5692K
audit: initializing netlink socket (disabled)
type=2000 audit(0.242: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 969
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-hdmi sh-mobile-hdmi: Detected HDMI controller 0x1:0xd5
sh_mobile_lcdc_fb sh_mobile_lcdc_fb.1: Runtime PM disabled, clock forced on.
sh_mobile_lcdc_fb sh_mobile_lcdc_fb.1: registered sh_mobile_lcdc_fb.1/mainlcd as 1920x1080 32bpp.
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 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:02:c0, 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
usb 1-2: new high-speed USB device number 2 using rmobile-ehci-driver
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.
sh-mobile-hdmi sh-mobile-hdmi: SH Mobile HDMI Audio Codec
asoc: sh_mobile_hdmi-hifi <-> fsib-dai mapping ok
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 00:00:42 UTC (946684842)
ALSA device list:
  #0: FSI2B-HDMI
  #1: FSI2A-WM8978
Waiting for root device /dev/mmcblk0p2...
uvcvideo: Found UVC 1.00 device USB_Camera (0458:708c)
input: USB_Camera as /devices/platform/rmobile-ehci-driver/usb1/1-2/1-2:1.0/input/input2
mmc0: new high speed SDHC card at address 0007
mmcblk0: mmc0:0007 SD4GB 3.70 GiB
 mmcblk0: p1 p2
kjournald starting.  Commit interval 5 seconds
EXT3-fs (mmcblk0p2): using internal journal
EXT3-fs (mmcblk0p2): recovery complete
EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
VFS: Mounted root (ext3 filesystem) on device 179:2.
Freeing init memory: 152K
Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
Backtrace:
[<80011108>] (dump_backtrace+0x0/0x10c) from [<803f690c>] (dump_stack+0x18/0x1c)
 r6:80554d18 r5:80554d38 r4:805978c0 r3:00000001
[<803f68f4>] (dump_stack+0x0/0x1c) from [<803f6c00>] (panic+0x84/0x1c4)
[<803f6b7c>] (panic+0x0/0x1c4) from [<803f68d0>] (init_post+0xa8/0xcc)
 r3:9e82bc00 r2:0000000d r1:0001e2df r0:804c483e
 r7:805978c0
[<803f6828>] (init_post+0x0/0xcc) from [<805359e8>] (kernel_init+0x1c8/0x204)
 r4:00000007 r3:9e402798
[<80535820>] (kernel_init+0x0/0x204) from [<80020ea8>] (do_exit+0x0/0x75c)
rebooted by watchdog timedout.

at_mizo

2019年5月13日 9時12分

溝渕です。

> ビルドした環境をSDカードに入れたら、ボートが起動できませんでした。
> 確認ですが、romfsとlinuxをビルドしました。
> ブートディスクもビルドする必要があるんでしょうか?

恐らく無いと思います。

標準イメージで同様の手順を実行した場合は、起動可能ですか?

各イメージごとに標準イメージに差し替えることで、どのイメージに問題があ
るか切り分けすることができると思います。

sunzone

2019年5月13日 15時15分

溝渕様

お世話になっております。

ご指摘の方法で試したら、romfsの問題のようです。
>Kernel panic - not syncing: No init found
というエラーは動的ライブラリが足りないのようですが、
romfs作成の際に、ATDE6のライブラリをromfs/libへコピーは何スクリプトを使いますかを知りたいです。

at_mizo

2019年5月13日 15時21分

溝渕です。

> romfs作成の際に、ATDE6のライブラリをromfs/libへコピーは何スクリプトを使いますかを知りたいです。

"tools/romfs-inst.sh"です。

sunzone

2019年5月14日 15時15分

溝渕様

起動できました。
ありがとうございます。