Advertisement
Guest User

sudo ./mk_mmc.sh --mmc /dev/sdb --uboot beagle_xm --distro p

a guest
Aug 30th, 2012
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.62 KB | None | 0 0
  1. ohad@ubuntu:~/ubuntuARM/netinstall$ sudo ./mk_mmc.sh --mmc /dev/sdb --uboot beagle_xm --distro precise-armhf --serial-mode
  2. [sudo] password for ohad:
  3.  
  4. I see...
  5. fdisk -l:
  6. Disk /dev/sda: 21.5 GB, 21474836480 bytes
  7. Disk /dev/sdb: 3963 MB, 3963617280 bytes
  8.  
  9. mount:
  10. /dev/sda1 on / type ext4 (rw,errors=remount-ro)
  11. devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
  12. /dev/sdb1 on /media/boot type vfat (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks)
  13. /dev/sdb2 on /media/rootfs type ext4 (rw,nosuid,nodev,uhelper=udisks)
  14.  
  15. Are you 100% sure, on selecting [/dev/sdb] (y/n)? y
  16.  
  17.  
  18. Script Version git: 05a2401
  19. -----------------------------
  20.  
  21. Downloading Device's Bootloader
  22. -----------------------------
  23. attempting to use rcn-ee.net for dl files [10 second time out]...
  24. 2012-08-30 20:04:22 URL:http://rcn-ee.net/deb/tools/latest/bootloader [6086/6086] -> "/tmp/tmp.NgPTBajXq9/dl/bootloader" [1]
  25. 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]
  26. SPL Bootloader: MLO-beagleboard-v2012.07-r1
  27. --2012-08-30 20:04:30-- http://rcn-ee.net/deb/tools/beagleboard/u-boot-beagleboard-v2012.07-r1.img
  28. Resolving rcn-ee.net (rcn-ee.net)... 69.163.149.169
  29. Connecting to rcn-ee.net (rcn-ee.net)|69.163.149.169|:80... connected.
  30. HTTP request sent, awaiting response... 200 OK
  31. Length: 337976 (330K) [text/plain]
  32. Saving to: `/tmp/tmp.NgPTBajXq9/dl/u-boot-beagleboard-v2012.07-r1.img'
  33.  
  34. 100%[============================================================================================================================================>] 337,976 59.9K/s in 13s
  35.  
  36. 2012-08-30 20:04:49 (25.7 KB/s) - `/tmp/tmp.NgPTBajXq9/dl/u-boot-beagleboard-v2012.07-r1.img' saved [337976/337976]
  37.  
  38. UBOOT Bootloader: u-boot-beagleboard-v2012.07-r1.img
  39.  
  40. Downloading Device's Kernel Image
  41. -----------------------------
  42. 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]
  43. 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]
  44. --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
  45. Resolving rcn-ee.net (rcn-ee.net)... 69.163.149.169
  46. Connecting to rcn-ee.net (rcn-ee.net)|69.163.149.169|:80... connected.
  47. HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable
  48.  
  49. The file is already fully retrieved; nothing to do.
  50.  
  51. Using Kernel: linux-image-3.2.28-x14_1.0precise_armhf.deb
  52.  
  53. Downloading NetInstall Image
  54. -----------------------------
  55. Note: NetInstall has u-boot header, removing...
  56. -----------------------------
  57. 182922+1 records in
  58. 182922+1 records out
  59. 11707032 bytes (12 MB) copied, 0.402769 s, 29.1 MB/s
  60. -----------------------------
  61. md5sum of NetInstall: 2b8a00ada904f3b2b72f3d92ccbaa830
  62.  
  63. Clone/Pulling linux-firmware.git
  64. -----------------------------
  65. Already up-to-date.
  66. -----------------------------
  67. Adding Firmware for onboard WiFi/Bluetooth module
  68. -----------------------------
  69. --2012-08-30 20:05:23-- http://rcn-ee.net/firmware/ti/TIInit_7.6.15.bts
  70. Resolving rcn-ee.net (rcn-ee.net)... 69.163.149.169
  71. Connecting to rcn-ee.net (rcn-ee.net)|69.163.149.169|:80... connected.
  72. HTTP request sent, awaiting response... 200 OK
  73. Length: 8680 (8.5K) [text/plain]
  74. Saving to: `/tmp/tmp.NgPTBajXq9/firmware/ti-connectivity/TIInit_7.6.15.bts'
  75.  
  76. 100%[============================================================================================================================================>] 8,680 6.16K/s in 1.4s
  77.  
  78. 2012-08-30 20:05:31 (6.16 KB/s) - `/tmp/tmp.NgPTBajXq9/firmware/ti-connectivity/TIInit_7.6.15.bts' saved [8680/8680]
  79.  
  80. NetInstall: Setting up to use Serial Port: [ttyO2]
  81.  
  82. NetInstall: Creating Custom Image
  83. -----------------------------
  84. NetInstall: Extracting Base initrd.gz
  85. 47008 blocks
  86. NetInstall: Removing Optional Stuff to Save RAM Space
  87. NetInstall: Adding Distro Tweaks and Preseed Configuration
  88. patching file usr/lib/finish-install.d/08rcn-ee-finish-installing-device
  89. `/home/ohad/ubuntuARM/netinstall/scripts/ubuntu-finish.sh' -> `/tmp/tmp.NgPTBajXq9/initrd-tree/etc/finish-install.sh'
  90. `/home/ohad/ubuntuARM/netinstall/scripts/precise-preseed.cfg' -> `/tmp/tmp.NgPTBajXq9/initrd-tree/preseed.cfg'
  91. NetInstall: Adding Device Tweaks
  92. NetInstall: Compressing initrd image
  93. 93606 blocks
  94. NetInstall: Extracting Kernel Boot Image
  95.  
  96. Unmounting Partitions
  97. -----------------------------
  98.  
  99. Using fdisk to create an omap compatible fatfs BOOT partition
  100. -----------------------------
  101.  
  102. Command (m for help): Partition type:
  103. p primary (0 primary, 0 extended, 4 free)
  104. e extended
  105. Select (default p): Partition number (1-4, default 1): First sector (2048-7741439, default 2048): Using default value 2048
  106. Last sector, +sectors or +size{K,M,G} (2048-7741439, default 7741439):
  107. Command (m for help): Selected partition 1
  108. Hex code (type L to list codes): Changed system type of partition 1 to e (W95 FAT16 (LBA))
  109.  
  110. Command (m for help):
  111. Disk /dev/sdb: 3963 MB, 3963617280 bytes
  112. 122 heads, 62 sectors/track, 1023 cylinders, total 7741440 sectors
  113. Units = sectors of 1 * 512 = 512 bytes
  114. Sector size (logical/physical): 512 bytes / 512 bytes
  115. I/O size (minimum/optimal): 512 bytes / 512 bytes
  116. Disk identifier: 0x00071519
  117.  
  118. Device Boot Start End Blocks Id System
  119. /dev/sdb1 2048 133119 65536 e W95 FAT16 (LBA)
  120.  
  121. Command (m for help): The partition table has been altered!
  122.  
  123. Calling ioctl() to re-read partition table.
  124.  
  125. WARNING: If you have created or modified any DOS 6.x
  126. partitions, please see the fdisk manual page for additional
  127. information.
  128. Syncing disks.
  129. Setting Boot Partition's Boot Flag
  130. -----------------------------
  131. Formating Boot Partition
  132. -----------------------------
  133. mkfs.vfat 3.0.12 (29 Oct 2011)
  134. Populating Boot Partition
  135. -----------------------------
  136. `/tmp/tmp.NgPTBajXq9/dl/MLO-beagleboard-v2012.07-r1' -> `/tmp/tmp.NgPTBajXq9/disk/MLO'
  137. `/tmp/tmp.NgPTBajXq9/dl/MLO-beagleboard-v2012.07-r1' -> `/tmp/tmp.NgPTBajXq9/disk/backup/MLO'
  138. -----------------------------
  139. `/tmp/tmp.NgPTBajXq9/dl/u-boot-beagleboard-v2012.07-r1.img' -> `/tmp/tmp.NgPTBajXq9/disk/u-boot.img'
  140. `/tmp/tmp.NgPTBajXq9/dl/u-boot-beagleboard-v2012.07-r1.img' -> `/tmp/tmp.NgPTBajXq9/disk/backup/u-boot.img'
  141. -----------------------------
  142. Copying Kernel image:
  143. `/tmp/tmp.NgPTBajXq9/kernel/boot/vmlinuz-3.2.28-x14' -> `/tmp/tmp.NgPTBajXq9/disk/zImage.net'
  144. -----------------------------
  145. Copying Kernel initrd:
  146. `/tmp/tmp.NgPTBajXq9/initrd.mod.gz' -> `/tmp/tmp.NgPTBajXq9/disk/initrd.net'
  147. -----------------------------
  148. Copying uEnv.txt based boot scripts to Boot Partition
  149. Net Install Boot Script:
  150. `/tmp/tmp.NgPTBajXq9/bootscripts/netinstall.cmd' -> `/tmp/tmp.NgPTBajXq9/disk/uEnv.txt'
  151. -----------------------------
  152. kernel_file=zImage.net
  153. initrd_file=initrd.net
  154.  
  155. #Video: Uncomment to override U-Boots value:
  156.  
  157.  
  158.  
  159.  
  160. console=ttyO2,115200n8
  161.  
  162. mmcroot=/dev/ram0 rw
  163.  
  164. boot_fstype=fat
  165. xyz_load_image=${boot_fstype}load mmc 0:1 0x80300000 ${kernel_file}
  166. xyz_load_initrd=${boot_fstype}load mmc 0:1 0x81600000 ${initrd_file}; setenv initrd_size ${filesize}
  167. xyz_load_dtb=${boot_fstype}load mmc 0:1 0x815f0000 /dtbs/${dtb_file}
  168.  
  169. xyz_mmcboot=run xyz_load_image; run xyz_load_initrd; echo Booting from mmc ...
  170.  
  171. video_args=setenv video VIDEO_DISPLAY
  172. device_args=run video_args; run expansion_args; run mmcargs
  173. mmcargs=setenv bootargs console=${console} ${optargs} ${video} root=${mmcroot} ${expansion}
  174.  
  175. expansion_args=setenv expansion buddy=${buddy} buddy2=${buddy2}
  176. loaduimage=run xyz_mmcboot; run device_args; bootz 0x80300000 0x81600000:${initrd_size}
  177.  
  178. -----------------------------
  179. Normal Boot Script:
  180. `/tmp/tmp.NgPTBajXq9/bootscripts/normal.cmd' -> `/tmp/tmp.NgPTBajXq9/disk/backup/normal.txt'
  181. -----------------------------
  182. kernel_file=zImage
  183. initrd_file=initrd.img
  184.  
  185. #Video: Uncomment to override U-Boots value:
  186. #defaultdisplay=dvi
  187. #dvimode=1280x720MR-16@60
  188. #vram=12MB
  189.  
  190. console=ttyO2,115200n8
  191.  
  192. mmcroot=FINAL_PART ro
  193. mmcrootfstype=FINAL_FSTYPE rootwait fixrtc
  194.  
  195. boot_fstype=fat
  196. xyz_load_image=${boot_fstype}load mmc 0:1 0x80300000 ${kernel_file}
  197. xyz_load_initrd=${boot_fstype}load mmc 0:1 0x81600000 ${initrd_file}; setenv initrd_size ${filesize}
  198. xyz_load_dtb=${boot_fstype}load mmc 0:1 0x815f0000 /dtbs/${dtb_file}
  199.  
  200. xyz_mmcboot=run xyz_load_image; run xyz_load_initrd; echo Booting from mmc ...
  201.  
  202. video_args=setenv video vram=${vram} omapfb.mode=${defaultdisplay}:${dvimode} omapdss.def_disp=${defaultdisplay}
  203. device_args=run video_args; run expansion_args; run mmcargs
  204. mmcargs=setenv bootargs console=${console} ${optargs} ${video} root=${mmcroot} rootfstype=${mmcrootfstype} ${expansion}
  205.  
  206. optargs=console=tty0
  207. expansion_args=setenv expansion buddy=${buddy} buddy2=${buddy2}
  208. loaduimage=run xyz_mmcboot; run device_args; bootz 0x80300000 0x81600000:${initrd_size}
  209.  
  210. -----------------------------
  211. `/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'
  212. Debug:
  213. #!/bin/sh
  214. format=1.0
  215. board=BEAGLEBOARD_XM
  216. bootloader_location=omap_fatfs_boot_part
  217. dd_seek=
  218. dd_bs=
  219.  
  220. boot_image=bootz
  221. boot_script=uEnv.txt
  222. boot_fstype=fat
  223.  
  224. serial_tty=ttyO2
  225. kernel_addr=0x80300000
  226. initrd_addr=0x81600000
  227. load_addr=0x80008000
  228. dtb_addr=0x815f0000
  229. dtb_file=
  230.  
  231. smsc95xx_mem=16384
  232.  
  233. Debug: Adding Useful scripts from: https://github.com/RobertCNelson/tools
  234. -----------------------------
  235. Cloning into '/tmp/tmp.NgPTBajXq9/disk/tools'...
  236. remote: Counting objects: 58, done.
  237. remote: Compressing objects: 100% (49/49), done.
  238. remote: Total 58 (delta 18), reused 44 (delta 8)
  239. Receiving objects: 100% (58/58), 7.09 KiB, done.
  240. Resolving deltas: 100% (18/18), done.
  241. -----------------------------
  242. Debug: Contents of Boot Partition
  243. -----------------------------
  244. total 39M
  245. drwxr-xr-x 2 root root 2.0K Aug 30 20:05 backup
  246. drwxr-xr-x 2 root root 2.0K Aug 30 20:05 dtbs
  247. -rwxr-xr-x 1 root root 20M Aug 30 20:05 initrd.net
  248. -rwxr-xr-x 1 root root 16M Aug 30 20:05 linux-image-3.2.28-x14_1.0precise_armhf.deb
  249. -rwxr-xr-x 1 root root 46K Aug 30 20:05 MLO
  250. -rwxr-xr-x 1 root root 290 Aug 30 20:05 SOC.sh
  251. drwxr-xr-x 5 root root 2.0K Aug 30 20:06 tools
  252. -rwxr-xr-x 1 root root 331K Aug 30 20:05 u-boot.img
  253. -rwxr-xr-x 1 root root 821 Aug 30 20:05 uEnv.txt
  254. -rwxr-xr-x 1 root root 2.9M Aug 30 20:05 zImage.net
  255. -----------------------------
  256. Finished populating Boot Partition
  257. -----------------------------
  258. mk_mmc.sh script complete
  259. Script Version git: 05a2401
  260. -----------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement