I changed file system. debian-7.3-bare-armhf-2013-12-18 -> debian-7.3-minimal-armhf-2013-12-18
and I succeed~ as I can see kernel that I compiled. <https://lh3.googleusercontent.com/-E_fNSEpHUgw/UwwjGEGGJhI/AAAAAAAABio/lKAt5UVz3Iw/s1600/%EC%8A%A4%ED%81%AC%EB%A6%B0%EC%83%B7%2C+2014-02-25+13%3A28%3A32.png> thank you~ RobertCNelson~ 2014년 2월 24일 월요일 오후 9시 39분 22초 UTC+9, Yeong-Woon Im 님의 말: > > Hi, I am newbie. > > I did following website. > > http://www.eewiki.net/display/linuxonarm/BeagleBone+Black > > I use these contents > > 1. ARM Cross Compiler: GCC > I did as following this website > > 2. Bootloader: U-Boot > I did as following this website > > 3. Upgrade distro "device-tree-compiler" package > I did as following this website > > 4. Linux Kernel > I used that. > git checkout origin/am33x-v3.13 -b tmp > > 5. Root File System (small flash) > add to uEnv.txt > optargs=quiet init=/lib/systemd/systemd > > Download: > ~/ > wget -c > https://rcn-ee.net/deb/barefs/wheezy/debian-7.3-bare-armhf-2013-12-18.tar.xz > Verify: > ~/ > md5sum debian-7.3-bare-armhf-2013-12-18.tar.xz > 1673993d8cbffe9dc95f157306e51657 debian-7.3-bare-armhf-2013-12-18.tar.xz > > Extract: > ~/ > tar xf debian-7.3-bare-armhf-2013-12-18.tar.xz > > 6. Setup microSD/SD card > - Erase microSD/SD card: > sudo dd if=/dev/zero of=/dev/sdb1 bs=1M count=16. > sudo dd if=/dev/zero of=/dev/sdb2 bs=1M count=16. > - Partition Layout > I did before. > - Format Partitions. > sudo mkfs.vfat -F 16 /dev/sdb1 -n boot > sudo mkfs.ext4 /dev/sdb2 -L rootfs > > 7. Install Bootloader > - Copy MLO/u-boot.img to the boot partition > ~/ > sudo cp -v ./u-boot/MLO /media/boot/ > sudo cp -v ./u-boot/u-boot.img /media/boot/ > > 8. uEnv.txt based bootscript > > - Create "uEnv.txt" boot script: (nano uEnv.txt) > ~/uEnv.txt > > #u-boot eMMC specific overrides; Angstrom Distribution (BeagleBone Black) > 2013-06-20 > kernel_file=zImage > initrd_file=uInitrd > > loadzimage=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${kernel_file} > loadinitrd=load mmc ${mmcdev}:${mmcpart} 0x81000000 ${initrd_file}; setenv > initrd_size ${filesize} > loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdtaddr} /dtbs/${fdtfile} > # > > console=ttyO0,115200n8 > mmcroot=/dev/mmcblk0p2 ro > mmcrootfstype=ext4 rootwait fixrtc > > ##To disable HDMI/eMMC... > > #optargs=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN,BB-BONE-EMMC-2G > > ##3.1MP Camera Cape > #optargs=capemgr.disable_partno=BB-BONE-EMMC-2G > > mmcargs=setenv bootargs console=${console} root=${mmcroot} > rootfstype=${mmcrootfstype} ${optargs} > > #zImage: > uenvcmd=run loadzimage; run loadfdt; run mmcargs; bootz ${loadaddr} - > ${fdtaddr} > > #zImage + uInitrd: where uInitrd has to be generated on the running system. > #boot_fdt=run loadzimage; run loadinitrd; run loadfdt > #uenvcmd=run boot_fdt; run mmcargs; bootz ${loadaddr} > 0x81000000:${initrd_size} ${fdtaddr} > > Copy uEnv.txt to the boot partition: > ~/ > sudo cp -v ./uEnv.txt /media/boot/ > > 9. Install Kernel and Root File System > - Copy Root File System > ~/ > sudo tar xfvp ./*-*-*-armhf-*/armhf-rootfs-*.tar -C /media/rootfs/ > - Copy Kernel Files > - Kernel Image: > ~/ > sudo cp -v ./linux-dev/deploy/${kernel_version}.zImage /media/boot/zImage > - Kernel Device Tree Binaries (v3.8.x/v3.12.x branch): > ~/ > sudo mkdir -p /media/boot/dtbs/ > sudo tar xfov ./linux-dev/deploy/${kernel_version}-dtbs.tar.gz -C > /media/boot/dtbs/ > sudo tar xfv ./linux-dev/deploy/${kernel_version}-firmware.tar.gz -C > /media/rootfs/lib/firmware/ > - Kernel Modules: > ~/ > sudo tar xfv ./linux-dev/deploy/${kernel_version}-modules.tar.gz -C > /media/rootfs/ > > 10. File Systems Table (/etc/fstab) > sudo nano /media/rootfs/etc/fstab > /etc/fstab > /dev/mmcblk0p2 / auto errors=remount-ro 0 1 > /dev/mmcblk0p1 /boot/uboot auto defaults 0 2 > > 11. Networking > sudo nano /media/rootfs/etc/network/interfaces > Add: > /etc/network/interfaces > auto lo > iface lo inet loopback > > auto eth0 > iface eth0 inet dhcp > > 12. Serial Login > Debian > Edit: /etc/inittab > sudo nano /media/rootfs/etc/inittab > Add this at the end of: /etc/inittab > /etc/inittab > T0:23:respawn:/sbin/getty -L ttyO0 115200 vt102 > > 13. eMMC > - Modifined uEnv.txt > > #zImage: > uenvcmd=run loadzimage; run loadfdt; run mmcargs; bootz ${loadaddr} - > ${fdtaddr} > to: > #zImage: > #uenvcmd=run loadzimage; run loadfdt; run mmcargs; bootz ${loadaddr} - > ${fdtaddr} > > Second, uncomment zImage + uInitrd boot: > #zImage + uInitrd: where uInitrd has to be generated on the running system. > #boot_ftd=run loadzimage; run loadinitrd; run loadfdt > #uenvcmd=run boot_ftd; run mmcargs; bootz ${loadaddr} > 0x81000000:${initrd_size} ${fdtaddr} > to: > #zImage + uInitrd: where uInitrd has to be generated on the running system. > boot_ftd=run loadzimage; run loadinitrd; run loadfdt > uenvcmd=run boot_ftd; run mmcargs; bootz ${loadaddr} > 0x81000000:${initrd_size} ${fdtaddr} > > - Script to copy your microSD card to eMMC: > wget -c > https://raw.github.com/RobertCNelson/tools/master/scripts/beaglebone-black-copy-microSD-to-eMMC.sh > chmod +x beaglebone-black-copy-microSD-to-eMMC.sh > copy it to micro sd card on rootfs partition. and execute it on connected > BBB to ethernet. > > power off and remove micro sd card. and then power up. > I got this message... > what's wrong with that? > > --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > U-Boot SPL 2013.10-dirty (Feb 21 2014 - 13:22:02) > > reading args > > spl: error reading image args, err - -1 > > reading u-boot.img > > reading u-boot.img > > > > > > U-Boot 2013.10-dirty (Feb 21 2014 - 13:22:02) > > > > I2C: ready > > DRAM: 512 MiB > > WARNING: Caches not enabled > > NAND: 0 MiB > > MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 > > *** Warning - readenv() failed, using default environment > > > > Net: <ethaddr> not set. Validating first E-fuse MAC > > cpsw, usb_ether > > Hit any key to stop autoboot: 0 > > gpio: pin 53 (gpio 53) value is 1 > > Card did not respond to voltage select! > > mmc0(part 0) is current device > > Card did not respond to voltage select! > > mmc1(part 0) is current device > > gpio: pin 54 (gpio 54) value is 1 > > SD/MMC found on device 1 > > reading uEnv.txt > > 1105 bytes read in 4 ms (269.5 KiB/s) > > Importing environment from mmc ... > > gpio: pin 55 (gpio 55) value is 1 > > Checking if uenvcmd is set ... > > gpio: pin 56 (gpio 56) value is 1 > > Running uenvcmd ... > > reading zImage > > 3897248 bytes read in 367 ms (10.1 MiB/s) > > reading uInitrd > > 2491193 bytes read in 237 ms (10 MiB/s) > > reading /dtbs/am335x-boneblack.dtb > > 20354 bytes read in 10 ms (1.9 MiB/s) > > Kernel image @ 0x80200000 [ 0x000000 - 0x3b77a0 ] > > ## Loading init Ramdisk from Legacy Image at 81000000 ... > > Image Name: initramfs > > Image Type: ARM Linux RAMDisk Image (uncompressed) > > Data Size: 2491129 Bytes = 2.4 MiB > > Load Address: 00000000 > > Entry Point: 00000000 > > Verifying Checksum ... OK > > ## Flattened Device Tree blob at 80f80000 > > Booting using the fdt blob at 0x80f80000 > > Loading Ramdisk to 9f3d2000, end 9f6322f9 ... OK > > Using Device Tree in place at 80f80000, end 80f87f81 > > > > Starting kernel ... > > > > [ 0.578018] omap_init_mbox: hwmod doesn't have valid attrs > > [ 2.484721] musb-hdrc musb-hdrc.0.auto: Falied to request rx1. > > [ 2.490876] musb-hdrc musb-hdrc.0.auto: musb_init_controller failed > with sta7 > [ 2.500416] musb-hdrc musb-hdrc.1.auto: Falied to request rx1. > > [ 2.506627] musb-hdrc musb-hdrc.1.auto: musb_init_controller failed > with sta7 > [ 2.831357] drivers/rtc/hctosys.c: unable to open rtc device (rtc0) > > Loading, please wait... > > Target filesystem doesn't have requested /lib/systemd/systemd. > > BusyBox v1.20.2 (Debian 1:1.20.0-7) multi-call binary. > > > > Usage: switch_root [-c /dev/console] NEW_ROOT NEW_INIT [ARGS] > > > > Free initramfs and switch to another root fs: > > chroot to NEW_ROOT, delete all in /, move NEW_ROOT to /, > > execute NEW_INIT. PID must be 1. NEW_ROOT must be a mountpoint. > > > > -c DEV Reopen stdio to DEV after switch > > > > [ 5.092444] Kernel panic - not syncing: Attempted to kill init! > exitcode=0x00 > [ 5.092444] > > [ 5.102051] CPU: 0 PID: 1 Comm: busybox Not tainted 3.13.3-bone5 #1 > > [ 5.108673] [<c001413c>] (unwind_backtrace+0x0/0xdc) from [<c0010ed8>] > (show) > [ 5.117625] [<c0010ed8>] (show_stack+0x10/0x14) from [<c0700f84>] > (dump_stac) > [ 5.126128] [<c0700f84>] (dump_stack+0x70/0x8c) from [<c06fb6fc>] > (panic+0x8) > [ 5.134261] [<c06fb6fc>] (panic+0x84/0x1d4) from [<c003c068>] > (do_exit+0x4e8) > [ 5.142298] [<c003c068>] (do_exit+0x4e8/0x930) from [<c003c528>] > (do_group_e) > [ 5.150971] [<c003c528>] (do_group_exit+0x4c/0xc4) from [<c003c5b0>] > (__wake) > [ 5.160189] drm_kms_helper: panic occurred, switching back to text > console > > > -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- > -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
