Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ohad@ubuntu:~/ubuntuARM/netinstall$ sudo ./mk_mmc.sh --mmc /dev/sdb --uboot beagle_xm --distro precise-armhf --serial-mode
- [sudo] password for ohad:
- I see...
- fdisk -l:
- Disk /dev/sda: 21.5 GB, 21474836480 bytes
- Disk /dev/sdb: 3963 MB, 3963617280 bytes
- mount:
- /dev/sda1 on / type ext4 (rw,errors=remount-ro)
- devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
- /dev/sdb1 on /media/boot type vfat (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks)
- /dev/sdb2 on /media/rootfs type ext4 (rw,nosuid,nodev,uhelper=udisks)
- Are you 100% sure, on selecting [/dev/sdb] (y/n)? y
- Script Version git: 05a2401
- -----------------------------
- Downloading Device's Bootloader
- -----------------------------
- attempting to use rcn-ee.net for dl files [10 second time out]...
- 2012-08-30 20:04:22 URL:http://rcn-ee.net/deb/tools/latest/bootloader [6086/6086] -> "/tmp/tmp.NgPTBajXq9/dl/bootloader" [1]
- 2012-08-30 20:04:30 URL:http://rcn-ee.net/deb/tools/beagleboard/MLO-beagleboard-v2012.07-r1 [46300/46300] -> "/tmp/tmp.NgPTBajXq9/dl/MLO-beagleboard-v2012.07-r1" [1]
- SPL Bootloader: MLO-beagleboard-v2012.07-r1
- --2012-08-30 20:04:30-- http://rcn-ee.net/deb/tools/beagleboard/u-boot-beagleboard-v2012.07-r1.img
- Resolving rcn-ee.net (rcn-ee.net)... 69.163.149.169
- Connecting to rcn-ee.net (rcn-ee.net)|69.163.149.169|:80... connected.
- HTTP request sent, awaiting response... 200 OK
- Length: 337976 (330K) [text/plain]
- Saving to: `/tmp/tmp.NgPTBajXq9/dl/u-boot-beagleboard-v2012.07-r1.img'
- 100%[============================================================================================================================================>] 337,976 59.9K/s in 13s
- 2012-08-30 20:04:49 (25.7 KB/s) - `/tmp/tmp.NgPTBajXq9/dl/u-boot-beagleboard-v2012.07-r1.img' saved [337976/337976]
- UBOOT Bootloader: u-boot-beagleboard-v2012.07-r1.img
- Downloading Device's Kernel Image
- -----------------------------
- 2012-08-30 20:04:55 URL:http://rcn-ee.net/deb/precise-armhf/LATEST-omap [229/229] -> "/tmp/tmp.NgPTBajXq9/dl/LATEST-omap" [1]
- 2012-08-30 20:05:05 URL:http://rcn-ee.net/deb/precise-armhf/v3.2.28-x14/ [975/975] -> "/tmp/tmp.NgPTBajXq9/dl/index.html" [1]
- --2012-08-30 20:05:05-- http://rcn-ee.net/deb/precise-armhf/v3.2.28-x14/linux-image-3.2.28-x14_1.0precise_armhf.deb
- Resolving rcn-ee.net (rcn-ee.net)... 69.163.149.169
- Connecting to rcn-ee.net (rcn-ee.net)|69.163.149.169|:80... connected.
- HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable
- The file is already fully retrieved; nothing to do.
- Using Kernel: linux-image-3.2.28-x14_1.0precise_armhf.deb
- Downloading NetInstall Image
- -----------------------------
- Note: NetInstall has u-boot header, removing...
- -----------------------------
- 182922+1 records in
- 182922+1 records out
- 11707032 bytes (12 MB) copied, 0.402769 s, 29.1 MB/s
- -----------------------------
- md5sum of NetInstall: 2b8a00ada904f3b2b72f3d92ccbaa830
- Clone/Pulling linux-firmware.git
- -----------------------------
- Already up-to-date.
- -----------------------------
- Adding Firmware for onboard WiFi/Bluetooth module
- -----------------------------
- --2012-08-30 20:05:23-- http://rcn-ee.net/firmware/ti/TIInit_7.6.15.bts
- Resolving rcn-ee.net (rcn-ee.net)... 69.163.149.169
- Connecting to rcn-ee.net (rcn-ee.net)|69.163.149.169|:80... connected.
- HTTP request sent, awaiting response... 200 OK
- Length: 8680 (8.5K) [text/plain]
- Saving to: `/tmp/tmp.NgPTBajXq9/firmware/ti-connectivity/TIInit_7.6.15.bts'
- 100%[============================================================================================================================================>] 8,680 6.16K/s in 1.4s
- 2012-08-30 20:05:31 (6.16 KB/s) - `/tmp/tmp.NgPTBajXq9/firmware/ti-connectivity/TIInit_7.6.15.bts' saved [8680/8680]
- NetInstall: Setting up to use Serial Port: [ttyO2]
- NetInstall: Creating Custom Image
- -----------------------------
- NetInstall: Extracting Base initrd.gz
- 47008 blocks
- NetInstall: Removing Optional Stuff to Save RAM Space
- NetInstall: Adding Distro Tweaks and Preseed Configuration
- patching file usr/lib/finish-install.d/08rcn-ee-finish-installing-device
- `/home/ohad/ubuntuARM/netinstall/scripts/ubuntu-finish.sh' -> `/tmp/tmp.NgPTBajXq9/initrd-tree/etc/finish-install.sh'
- `/home/ohad/ubuntuARM/netinstall/scripts/precise-preseed.cfg' -> `/tmp/tmp.NgPTBajXq9/initrd-tree/preseed.cfg'
- NetInstall: Adding Device Tweaks
- NetInstall: Compressing initrd image
- 93606 blocks
- NetInstall: Extracting Kernel Boot Image
- Unmounting Partitions
- -----------------------------
- Using fdisk to create an omap compatible fatfs BOOT partition
- -----------------------------
- Command (m for help): Partition type:
- p primary (0 primary, 0 extended, 4 free)
- e extended
- Select (default p): Partition number (1-4, default 1): First sector (2048-7741439, default 2048): Using default value 2048
- Last sector, +sectors or +size{K,M,G} (2048-7741439, default 7741439):
- Command (m for help): Selected partition 1
- Hex code (type L to list codes): Changed system type of partition 1 to e (W95 FAT16 (LBA))
- Command (m for help):
- Disk /dev/sdb: 3963 MB, 3963617280 bytes
- 122 heads, 62 sectors/track, 1023 cylinders, total 7741440 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
- Disk identifier: 0x00071519
- Device Boot Start End Blocks Id System
- /dev/sdb1 2048 133119 65536 e W95 FAT16 (LBA)
- Command (m for help): The partition table has been altered!
- Calling ioctl() to re-read partition table.
- WARNING: If you have created or modified any DOS 6.x
- partitions, please see the fdisk manual page for additional
- information.
- Syncing disks.
- Setting Boot Partition's Boot Flag
- -----------------------------
- Formating Boot Partition
- -----------------------------
- mkfs.vfat 3.0.12 (29 Oct 2011)
- Populating Boot Partition
- -----------------------------
- `/tmp/tmp.NgPTBajXq9/dl/MLO-beagleboard-v2012.07-r1' -> `/tmp/tmp.NgPTBajXq9/disk/MLO'
- `/tmp/tmp.NgPTBajXq9/dl/MLO-beagleboard-v2012.07-r1' -> `/tmp/tmp.NgPTBajXq9/disk/backup/MLO'
- -----------------------------
- `/tmp/tmp.NgPTBajXq9/dl/u-boot-beagleboard-v2012.07-r1.img' -> `/tmp/tmp.NgPTBajXq9/disk/u-boot.img'
- `/tmp/tmp.NgPTBajXq9/dl/u-boot-beagleboard-v2012.07-r1.img' -> `/tmp/tmp.NgPTBajXq9/disk/backup/u-boot.img'
- -----------------------------
- Copying Kernel image:
- `/tmp/tmp.NgPTBajXq9/kernel/boot/vmlinuz-3.2.28-x14' -> `/tmp/tmp.NgPTBajXq9/disk/zImage.net'
- -----------------------------
- Copying Kernel initrd:
- `/tmp/tmp.NgPTBajXq9/initrd.mod.gz' -> `/tmp/tmp.NgPTBajXq9/disk/initrd.net'
- -----------------------------
- Copying uEnv.txt based boot scripts to Boot Partition
- Net Install Boot Script:
- `/tmp/tmp.NgPTBajXq9/bootscripts/netinstall.cmd' -> `/tmp/tmp.NgPTBajXq9/disk/uEnv.txt'
- -----------------------------
- kernel_file=zImage.net
- initrd_file=initrd.net
- #Video: Uncomment to override U-Boots value:
- console=ttyO2,115200n8
- mmcroot=/dev/ram0 rw
- boot_fstype=fat
- xyz_load_image=${boot_fstype}load mmc 0:1 0x80300000 ${kernel_file}
- xyz_load_initrd=${boot_fstype}load mmc 0:1 0x81600000 ${initrd_file}; setenv initrd_size ${filesize}
- xyz_load_dtb=${boot_fstype}load mmc 0:1 0x815f0000 /dtbs/${dtb_file}
- xyz_mmcboot=run xyz_load_image; run xyz_load_initrd; echo Booting from mmc ...
- video_args=setenv video VIDEO_DISPLAY
- device_args=run video_args; run expansion_args; run mmcargs
- mmcargs=setenv bootargs console=${console} ${optargs} ${video} root=${mmcroot} ${expansion}
- expansion_args=setenv expansion buddy=${buddy} buddy2=${buddy2}
- loaduimage=run xyz_mmcboot; run device_args; bootz 0x80300000 0x81600000:${initrd_size}
- -----------------------------
- Normal Boot Script:
- `/tmp/tmp.NgPTBajXq9/bootscripts/normal.cmd' -> `/tmp/tmp.NgPTBajXq9/disk/backup/normal.txt'
- -----------------------------
- kernel_file=zImage
- initrd_file=initrd.img
- #Video: Uncomment to override U-Boots value:
- #defaultdisplay=dvi
- #dvimode=1280x720MR-16@60
- #vram=12MB
- console=ttyO2,115200n8
- mmcroot=FINAL_PART ro
- mmcrootfstype=FINAL_FSTYPE rootwait fixrtc
- boot_fstype=fat
- xyz_load_image=${boot_fstype}load mmc 0:1 0x80300000 ${kernel_file}
- xyz_load_initrd=${boot_fstype}load mmc 0:1 0x81600000 ${initrd_file}; setenv initrd_size ${filesize}
- xyz_load_dtb=${boot_fstype}load mmc 0:1 0x815f0000 /dtbs/${dtb_file}
- xyz_mmcboot=run xyz_load_image; run xyz_load_initrd; echo Booting from mmc ...
- video_args=setenv video vram=${vram} omapfb.mode=${defaultdisplay}:${dvimode} omapdss.def_disp=${defaultdisplay}
- device_args=run video_args; run expansion_args; run mmcargs
- mmcargs=setenv bootargs console=${console} ${optargs} ${video} root=${mmcroot} rootfstype=${mmcrootfstype} ${expansion}
- optargs=console=tty0
- expansion_args=setenv expansion buddy=${buddy} buddy2=${buddy2}
- loaduimage=run xyz_mmcboot; run device_args; bootz 0x80300000 0x81600000:${initrd_size}
- -----------------------------
- `/home/ohad/ubuntuARM/netinstall/dl/precise-armhf/linux-image-3.2.28-x14_1.0precise_armhf.deb' -> `/tmp/tmp.NgPTBajXq9/disk/linux-image-3.2.28-x14_1.0precise_armhf.deb'
- Debug:
- #!/bin/sh
- format=1.0
- board=BEAGLEBOARD_XM
- bootloader_location=omap_fatfs_boot_part
- dd_seek=
- dd_bs=
- boot_image=bootz
- boot_script=uEnv.txt
- boot_fstype=fat
- serial_tty=ttyO2
- kernel_addr=0x80300000
- initrd_addr=0x81600000
- load_addr=0x80008000
- dtb_addr=0x815f0000
- dtb_file=
- smsc95xx_mem=16384
- Debug: Adding Useful scripts from: https://github.com/RobertCNelson/tools
- -----------------------------
- Cloning into '/tmp/tmp.NgPTBajXq9/disk/tools'...
- remote: Counting objects: 58, done.
- remote: Compressing objects: 100% (49/49), done.
- remote: Total 58 (delta 18), reused 44 (delta 8)
- Receiving objects: 100% (58/58), 7.09 KiB, done.
- Resolving deltas: 100% (18/18), done.
- -----------------------------
- Debug: Contents of Boot Partition
- -----------------------------
- total 39M
- drwxr-xr-x 2 root root 2.0K Aug 30 20:05 backup
- drwxr-xr-x 2 root root 2.0K Aug 30 20:05 dtbs
- -rwxr-xr-x 1 root root 20M Aug 30 20:05 initrd.net
- -rwxr-xr-x 1 root root 16M Aug 30 20:05 linux-image-3.2.28-x14_1.0precise_armhf.deb
- -rwxr-xr-x 1 root root 46K Aug 30 20:05 MLO
- -rwxr-xr-x 1 root root 290 Aug 30 20:05 SOC.sh
- drwxr-xr-x 5 root root 2.0K Aug 30 20:06 tools
- -rwxr-xr-x 1 root root 331K Aug 30 20:05 u-boot.img
- -rwxr-xr-x 1 root root 821 Aug 30 20:05 uEnv.txt
- -rwxr-xr-x 1 root root 2.9M Aug 30 20:05 zImage.net
- -----------------------------
- Finished populating Boot Partition
- -----------------------------
- mk_mmc.sh script complete
- Script Version git: 05a2401
- -----------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement