履歴: 電気回路/zynq/Petalinux のカスタマイズ
各行は、その日時に書かれた内容です。追加・削除は、1 つ前の版との行数の差です (全 15 版)。「差分」は比較する版、「基準」は比べる相手の版を選びます
| 日時 | タイトル | 文字数 | 追加 | 削除 | 内容 | 差分 | 基準 |
|---|---|---|---|---|---|---|---|
| 2019/3/20 16:17:29 | 電気回路/zynq/Petalinux のカスタマイズ 最新版 | 47,912 | +1 | -2 | 表示 | 差分 | — |
| 2017/3/22 4:54:30 | 電気回路/zynq/Petalinux のカスタマイズ | 47,904 | +5 | -3 | 表示 | 差分 | 選択 |
| 2017/3/22 4:54:30 | 電気回路/zynq/Petalinux のカスタマイズ | 47,860 | +80 | -26 | 表示 | 差分 | 選択 |
| 2017/2/24 12:48:31 | 電気回路/zynq/Petalinux のカスタマイズ | 45,959 | +13 | -6 | 表示 | 差分 | 選択 |
| 2017/2/24 12:48:31 | 電気回路/zynq/Petalinux のカスタマイズ | 45,759 | +15 | -7 | 表示 | 差分 | 選択 |
| 2017/2/24 12:48:31 | 電気回路/zynq/Petalinux のカスタマイズ | 45,570 | +72 | -26 | 表示 | 差分 | 選択 |
| 2017/2/24 6:27:32 | 電気回路/zynq/Petalinux のカスタマイズ | 43,807 | +180 | -21 | 表示 | 差分 | 選択 |
| 2017/2/23 22:19:22 | 電気回路/zynq/Petalinux のカスタマイズ | 38,925 | +53 | -28 | 表示 | 表示中 | 選択 |
| 2017/2/23 16:38:24 | 電気回路/zynq/Petalinux のカスタマイズ | 38,730 | +259 | -160 | 表示 | 差分 | 基準 |
| 2017/2/23 10:27:23 | 電気回路/zynq/Petalinux のカスタマイズ | 33,288 | +568 | -1 | 表示 | 差分 | 選択 |
| 2017/2/20 18:04:09 | 電気回路/zynq/Petalinux のカスタマイズ | 8,009 | +54 | -0 | 表示 | 差分 | 選択 |
| 2017/2/20 9:44:23 | 電気回路/zynq/Petalinux のカスタマイズ | 6,485 | +99 | -50 | 表示 | 差分 | 選択 |
| 2017/2/20 4:03:13 | 電気回路/zynq/Petalinux のカスタマイズ | 4,641 | +123 | -11 | 表示 | 差分 | 選択 |
| 2017/2/16 18:16:25 | 電気回路/zynq/Petalinux のカスタマイズ | 1,991 | +51 | -5 | 表示 | 差分 | 選択 |
| 2017/2/16 16:44:09 | 電気回路/zynq/Petalinux のカスタマイズ | 562 | — | — | 表示 | — | 選択 |
基準: 電気回路/zynq/Petalinux のカスタマイズ (2017/2/23 16:38:24) → 比較: 電気回路/zynq/Petalinux のカスタマイズ (2017/2/23 22:19:22)
@@ -882,12 +882,30 @@
> /components
> /BOOT.BIN
> *~
+ > *.old
> EOT
+ $ git add .
+ $ git commit -m "newly created"
$ petalinux-config --get-hw-description=../design_1_wrapper_hw_platform_1/
Linux Components Selection --->
[Uncheck] First Stage Bootloaer
Auto Config Settings --->
[Uncheck] fsbl autoconfig
+ Subsystem AUTO Hardware Settings --->
+ Advanced bootable images storage Settings --->
+ kernel image settings --->
+ image storage media --->
+ primary sd
+ dtb image settings --->
+ image storage media --->
+ primary sd
+ Image Packaging Configuration --->
+ Root filesystem type --->
+ SD card
+ [Uncheck] Copy final images to tftpboot
+ u-boot Configuration --->
+ U-boot config --->
+ other
Yocto Settings --->
Parallel thread execution --->
BB_NUMBER_THREADS = 4
@@ -907,20 +925,6 @@
NOTE: Tasks Summary: Attempted 1793 tasks of which 1378 didn't need to be rerun and all succeeded.
Summary: There was 1 WARNING message shown.
- Error in atexit._run_exitfuncs:
- Traceback (most recent call last):
- File "/home/osamu/z-turn/petalinux/components/yocto/source/arm/buildtools/sysroots/x86_64-petalinux-linux/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
- func(*targs, **kargs)
- File "/home/osamu/z-turn/petalinux/components/yocto/source/arm/layers/poky/bitbake/lib/bb/ui/knotty.py", line 226, in finish
- self.termios.tcsetattr(fd, self.termios.TCSADRAIN, self.stdinbackup)
- error: (5, 'Input/output error')
- Error in sys.exitfunc:
- Traceback (most recent call last):
- File "/home/osamu/z-turn/petalinux/components/yocto/source/arm/buildtools/sysroots/x86_64-petalinux-linux/usr/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
- func(*targs, **kargs)
- File "/home/osamu/z-turn/petalinux/components/yocto/source/arm/layers/poky/bitbake/lib/bb/ui/knotty.py", line 226, in finish
- self.termios.tcsetattr(fd, self.termios.TCSADRAIN, self.stdinbackup)
- termios.error: (5, 'Input/output error')
$ ls images/linux
uImage
$ ls build/tmp/deploy/images/plnx_arm/
@@ -937,22 +941,43 @@
$ cp build/tmp/deploy/images/plnx_arm/plnx_arm-system.dtb images/linux/devicetree.dtb
$ cp ../design_1_wrapper_hw_platform_1/design_1_wrapper.bit images/linux/system.bit.bin
$ cat > images/linux/uEnv.txt
- bootargs=console=ttyPS1,115200 root=/dev/mmcblk0p2 rw earlyprintk rootfstype=ext4 devtmpfs.mount=0
- uenvcmd=run mmc_loadbit_fat && echo Copying Linux from SD to RAM... && mmcinfo && run load_image && bootm ${kernel_load_address} - ${devicetree_load_address}
- load_image=fatload mmc 0 ${kernel_load_address} ${kernel_image} && fatload mmc 0 ${devicetree_load_address} ${devicetree_image}
- mmc_loadbit_fat=echo Loading ${bitstream_image} to PL... && mmcinfo && fatload mmc 0 ${loadbit_addr} ${bitstream_image} && fpga loadb 0 ${loadbit_addr} ${filesize}
- ^D
+ bootargs=console=ttyPS1,115200 root=/dev/mmcblk0p2 rw earlyprintk rootfstype=ext4 devtmpfs.mount=0
+ uenvcmd=run mmc_loadbit_fat && echo Copying Linux from SD to RAM... && mmcinfo && run load_image && bootm ${kernel_load_address} - ${devicetree_load_address}
+ load_image=fatload mmc 0 ${kernel_load_address} ${kernel_image} && fatload mmc 0 ${devicetree_load_address} ${devicetree_image}
+ mmc_loadbit_fat=echo Loading ${bitstream_image} to PL... && mmcinfo && fatload mmc 0 ${loadbit_addr} ${bitstream_image} && fpga loadb 0 ${loadbit_addr} ${filesize}
+ ^D
$ ls images/linux
BOOT.BIN devicetree.dtb system.bit.bin u-boot.elf uEnv.txt uImage zynq_fsbl.elf
- $ cp -R build/tmp/work-shared/plnx_arm/kernel-source/ .
- $ cp build/tmp/work-shared/plnx_arm/kernel-build-artifacts/.config kernel-source/
+ $ git add .
+ $ git commit -m "起動可能になった"
- $ petalinux-build -c u-boot
- $ ls images/linux/
- BOOT.BIN devicetree.dtb rootfs.tar.gz u-boot.bin uImage
- System.map.linux rootfs.cpio system.bit.bin u-boot.elf vmlinux
- design_1_wrapper.bit rootfs.cpio.gz system.dtb uEnv.txt zynq_fsbl.elf
-
-
- u-boot の confiture をしないと image.ub を読みに行ってしまいます
- mkdir -p images/linux/ をしないと uImage などがコピーできないというエラーが出ます
+- BOOT.BIN, devicetree.dtb, system.bit.bin, uEnv.txt, uImage を FAT32 の第1パーティションにコピーします
+
+ルートファイルシステムの準備
+
+ LANG:console
+ $ sudo apt-get install qemu-user-static debootstrap binfmt-support
+ $ mkdir -p ~/z-turn/rootfs
+ $ export targetdir=~/z-turn/rootfs
+ $ export distro=jessie
+ $ sudo debootstrap --arch=armhf --foreign $distro $targetdir
+ $ sudo cp /usr/bin/qemu-arm-static $targetdir/usr/bin
+ $ sudo cp /etc/resolv.conf $targetdir/etc
+ $ sudo chroot $targetdir
+ $ export distro=jessie
+ $ export LANG=C
+ $ /debootstrap/debootstrap --second-stage
+ $
+
+以下、カーネルソースをコンパイル可能な形にコピーし、設定後、ビルド&インストールする手順~
+uImage と、/lib/modules/4.6.0.
+ LANG:console
+ $ cp -R build/tmp/work-shared/plnx_arm/kernel-source/ .
+ $ cp build/tmp/work-shared/plnx_arm/kernel-build-artifacts/.config kernel-source/
+ $ make ARCH=arm menuconfig
+ $ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- UIMAGE_LOADADDR=0x8000 uImage
+ $ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- modules
+ $ sudo make ARCH=arm INSTALL_MOD_PATH=/mnt/sdcard2 modules_install
+ $ sudo make ARCH=arm INSTALL_MOD_PATH=/mnt/sdcard2 firmware_install