Advertisement
Guest User

Untitled

a guest
Apr 17th, 2013
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.81 KB | None | 0 0
  1. voodoo@ubuntu:~$ lsb_release --all
  2. No LSB modules are available.
  3. Distributor ID: Ubuntu
  4. Description: Ubuntu Raring Ringtail (development branch)
  5. Release: 13.04
  6. Codename: raring
  7. voodoo@ubuntu:~$ dpkg --
  8. --abort-after --no-debsig
  9. --add-architecture --no-force-
  10. --admindir= --no-triggers
  11. --assert-multi-arch --path-exclude=
  12. --assert-working-epoch --path-include=
  13. --audit --print-architecture
  14. --auto-deconfigure --print-avail
  15. --clear-avail --print-foreign-architectures
  16. --clear-selections --purge
  17. --compare-versions --record-avail
  18. --configure --refuse-downgrade
  19. --debug= --remove
  20. --extract --remove-architecture
  21. --force- --root=
  22. --force-help --search
  23. --forget-old-unavail --selected-only
  24. --get-selections --set-selections
  25. --help --skip-same-version
  26. --ignore-depends= --status
  27. --install --status-fd
  28. --instdir= --status-logger=
  29. --list --triggers
  30. --listfiles --triggers-only
  31. --log= --unpack
  32. --merge-avail --update-avail
  33. --no-act --version
  34. voodoo@ubuntu:~$ dpkg --print-architecture
  35. amd64
  36. voodoo@ubuntu:~$ sudo apt-get install parted
  37. [sudo] password for voodoo:
  38. Reading package lists... Done
  39. Building dependency tree
  40. Reading state information... Done
  41. parted is already the newest version.
  42. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
  43. voodoo@ubuntu:~$ sudo fdisk -l
  44.  
  45. Disk /dev/sda: 120.0 GB, 120034123776 bytes
  46. 255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
  47. Units = sectors of 1 * 512 = 512 bytes
  48. Sector size (logical/physical): 512 bytes / 512 bytes
  49. I/O size (minimum/optimal): 512 bytes / 512 bytes
  50. Disk identifier: 0x000ea522
  51.  
  52. Device Boot Start End Blocks Id System
  53. /dev/sda1 * 2048 167444479 83721216 83 Linux
  54. /dev/sda2 167446526 234440703 33497089 5 Extended
  55. /dev/sda5 167446528 234440703 33497088 82 Linux swap / Solaris
  56.  
  57. Disk /dev/sdd: 4029 MB, 4029677568 bytes
  58. 40 heads, 6 sectors/track, 32793 cylinders, total 7870464 sectors
  59. Units = sectors of 1 * 512 = 512 bytes
  60. Sector size (logical/physical): 512 bytes / 512 bytes
  61. I/O size (minimum/optimal): 512 bytes / 512 bytes
  62. Disk identifier: 0x0007b333
  63.  
  64. Device Boot Start End Blocks Id System
  65. /dev/sdd1 * 2048 133119 65536 e W95 FAT16 (LBA)
  66. voodoo@ubuntu:~$ export DISK=/dev/sdd
  67. voodoo@ubuntu:~$ sudo dd if=/dev/zero of=${DISK} bs=1024 count=1024
  68. 1024+0 records in
  69. 1024+0 records out
  70. 1048576 bytes (1.0 MB) copied, 0.387528 s, 2.7 MB/s
  71. voodoo@ubuntu:~$ sudo parted --script ${DISK} mklabel msdos
  72. voodoo@ubuntu:~$ sudo fdisk ${DISK} << __EOF__
  73. > n
  74. > p
  75. > 1
  76. >
  77. > +64M
  78. > t
  79. > e
  80. > p
  81. > w
  82. > __EOF__
  83.  
  84. Command (m for help): Partition type:
  85. p primary (0 primary, 0 extended, 4 free)
  86. e extended
  87. Select (default p): Partition number (1-4, default 1): First sector (2048-7870463, default 2048): Using default value 2048
  88. Last sector, +sectors or +size{K,M,G} (2048-7870463, default 7870463):
  89. Command (m for help): Selected partition 1
  90. Hex code (type L to list codes): Changed system type of partition 1 to e (W95 FAT16 (LBA))
  91.  
  92. Command (m for help):
  93. Disk /dev/sdd: 4029 MB, 4029677568 bytes
  94. 124 heads, 62 sectors/track, 1023 cylinders, total 7870464 sectors
  95. Units = sectors of 1 * 512 = 512 bytes
  96. Sector size (logical/physical): 512 bytes / 512 bytes
  97. I/O size (minimum/optimal): 512 bytes / 512 bytes
  98. Disk identifier: 0x000b8c29
  99.  
  100. Device Boot Start End Blocks Id System
  101. /dev/sdd1 2048 133119 65536 e W95 FAT16 (LBA)
  102.  
  103. Command (m for help): The partition table has been altered!
  104.  
  105. Calling ioctl() to re-read partition table.
  106.  
  107. WARNING: If you have created or modified any DOS 6.x
  108. partitions, please see the fdisk manual page for additional
  109. information.
  110. Syncing disks.
  111. voodoo@ubuntu:~$ sudo fdisk /dev/sdb -l
  112. voodoo@ubuntu:~$ sudo fdisk -l /dev/sdb
  113. voodoo@ubuntu:~$ sudo fdisk -l
  114.  
  115. Disk /dev/sda: 120.0 GB, 120034123776 bytes
  116. 255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
  117. Units = sectors of 1 * 512 = 512 bytes
  118. Sector size (logical/physical): 512 bytes / 512 bytes
  119. I/O size (minimum/optimal): 512 bytes / 512 bytes
  120. Disk identifier: 0x000ea522
  121.  
  122. Device Boot Start End Blocks Id System
  123. /dev/sda1 * 2048 167444479 83721216 83 Linux
  124. /dev/sda2 167446526 234440703 33497089 5 Extended
  125. /dev/sda5 167446528 234440703 33497088 82 Linux swap / Solaris
  126.  
  127. Disk /dev/sdd: 4029 MB, 4029677568 bytes
  128. 40 heads, 6 sectors/track, 32793 cylinders, total 7870464 sectors
  129. Units = sectors of 1 * 512 = 512 bytes
  130. Sector size (logical/physical): 512 bytes / 512 bytes
  131. I/O size (minimum/optimal): 512 bytes / 512 bytes
  132. Disk identifier: 0x000b8c29
  133.  
  134. Device Boot Start End Blocks Id System
  135. /dev/sdd1 2048 133119 65536 e W95 FAT16 (LBA)
  136. voodoo@ubuntu:~$
  137. voodoo@ubuntu:~$ sudo parted --script ${DISK} set 1 boot on
  138. voodoo@ubuntu:~$ sudo fdisk -l
  139.  
  140. Disk /dev/sda: 120.0 GB, 120034123776 bytes
  141. 255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
  142. Units = sectors of 1 * 512 = 512 bytes
  143. Sector size (logical/physical): 512 bytes / 512 bytes
  144. I/O size (minimum/optimal): 512 bytes / 512 bytes
  145. Disk identifier: 0x000ea522
  146.  
  147. Device Boot Start End Blocks Id System
  148. /dev/sda1 * 2048 167444479 83721216 83 Linux
  149. /dev/sda2 167446526 234440703 33497089 5 Extended
  150. /dev/sda5 167446528 234440703 33497088 82 Linux swap / Solaris
  151.  
  152. Disk /dev/sdd: 4029 MB, 4029677568 bytes
  153. 40 heads, 6 sectors/track, 32793 cylinders, total 7870464 sectors
  154. Units = sectors of 1 * 512 = 512 bytes
  155. Sector size (logical/physical): 512 bytes / 512 bytes
  156. I/O size (minimum/optimal): 512 bytes / 512 bytes
  157. Disk identifier: 0x000b8c29
  158.  
  159. Device Boot Start End Blocks Id System
  160. /dev/sdd1 * 2048 133119 65536 e W95 FAT16 (LBA)
  161. voodoo@ubuntu:~$ sudo mkfs.vfat -F 16 ${DISK}1 -n boot
  162. mkfs.vfat 3.0.14 (23 Jan 2023)
  163. voodoo@ubuntu:~$ sudo fdisk ${DISK} << __EOF__
  164. > n
  165. > p
  166. > 2
  167. >
  168. >
  169. > w
  170. > __EOF__
  171.  
  172. Command (m for help): Partition type:
  173. p primary (1 primary, 0 extended, 3 free)
  174. e extended
  175. Select (default p): Partition number (1-4, default 2): First sector (133120-7870463, default 133120): Using default value 133120
  176. Last sector, +sectors or +size{K,M,G} (133120-7870463, default 7870463): Using default value 7870463
  177.  
  178. Command (m for help): The partition table has been altered!
  179.  
  180. Calling ioctl() to re-read partition table.
  181. Syncing disks.
  182. voodoo@ubuntu:~$ sudo fdisk -l
  183.  
  184. Disk /dev/sda: 120.0 GB, 120034123776 bytes
  185. 255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
  186. Units = sectors of 1 * 512 = 512 bytes
  187. Sector size (logical/physical): 512 bytes / 512 bytes
  188. I/O size (minimum/optimal): 512 bytes / 512 bytes
  189. Disk identifier: 0x000ea522
  190.  
  191. Device Boot Start End Blocks Id System
  192. /dev/sda1 * 2048 167444479 83721216 83 Linux
  193. /dev/sda2 167446526 234440703 33497089 5 Extended
  194. /dev/sda5 167446528 234440703 33497088 82 Linux swap / Solaris
  195.  
  196. Disk /dev/sdd: 4029 MB, 4029677568 bytes
  197. 124 heads, 62 sectors/track, 1023 cylinders, total 7870464 sectors
  198. Units = sectors of 1 * 512 = 512 bytes
  199. Sector size (logical/physical): 512 bytes / 512 bytes
  200. I/O size (minimum/optimal): 512 bytes / 512 bytes
  201. Disk identifier: 0x000b8c29
  202.  
  203. Device Boot Start End Blocks Id System
  204. /dev/sdd1 * 2048 133119 65536 e W95 FAT16 (LBA)
  205. /dev/sdd2 133120 7870463 3868672 83 Linux
  206. voodoo@ubuntu:~$ sudo mkfs.ext4 ${DISK}2 -L rootfs
  207. mke2fs 1.42.5 (29-Jul-2012)
  208. Filesystem label=rootfs
  209. OS type: Linux
  210. Block size=4096 (log=2)
  211. Fragment size=4096 (log=2)
  212. Stride=0 blocks, Stripe width=0 blocks
  213. 241920 inodes, 967168 blocks
  214. 48358 blocks (5.00%) reserved for the super user
  215. First data block=0
  216. Maximum filesystem blocks=994050048
  217. 30 block groups
  218. 32768 blocks per group, 32768 fragments per group
  219. 8064 inodes per group
  220. Superblock backups stored on blocks:
  221. 32768, 98304, 163840, 229376, 294912, 819200, 884736
  222.  
  223. Allocating group tables: done
  224. Writing inode tables: done
  225. Creating journal (16384 blocks): done
  226. Writing superblocks and filesystem accounting information: done
  227.  
  228. voodoo@ubuntu:~$
  229. voodoo@ubuntu:~$ sudo mkdir -p /media/boot/
  230. voodoo@ubuntu:~$ sudo mkdir -p /media/rootfs/
  231. voodoo@ubuntu:~$ sudo mount ${DISK}1 /media/boot/
  232. voodoo@ubuntu:~$ wget http://rcn-ee.net/deb/tools/beagleboard/MLO-beagleboard-v2013.04-rc2-r1
  233. --2013-04-17 23:05:20-- http://rcn-ee.net/deb/tools/beagleboard/MLO-beagleboard-v2013.04-rc2-r1
  234. Resolving rcn-ee.net (rcn-ee.net)... 69.163.130.148
  235. Connecting to rcn-ee.net (rcn-ee.net)|69.163.130.148|:80... connected.
  236. HTTP request sent, awaiting response... 200 OK
  237. Length: 47156 (46K) [text/plain]
  238. Saving to: ‘MLO-beagleboard-v2013.04-rc2-r1’
  239.  
  240. 100%[========================================================================================================>] 47,156 96.5KB/s in 0.5s
  241.  
  242. 2013-04-17 23:05:21 (96.5 KB/s) - ‘MLO-beagleboard-v2013.04-rc2-r1’ saved [47156/47156]
  243.  
  244. voodoo@ubuntu:~$ wget http://rcn-ee.net/deb/tools/beagleboard/u-boot-beagleboard-v2013.04-rc2-r1.img
  245. --2013-04-17 23:05:29-- http://rcn-ee.net/deb/tools/beagleboard/u-boot-beagleboard-v2013.04-rc2-r1.img
  246. Resolving rcn-ee.net (rcn-ee.net)... 69.163.130.148
  247. Connecting to rcn-ee.net (rcn-ee.net)|69.163.130.148|:80... connected.
  248. HTTP request sent, awaiting response... 200 OK
  249. Length: 361336 (353K) [text/plain]
  250. Saving to: ‘u-boot-beagleboard-v2013.04-rc2-r1.img’
  251.  
  252. 100%[========================================================================================================>] 361,336 104KB/s in 3.4s
  253.  
  254. 2013-04-17 23:05:33 (104 KB/s) - ‘u-boot-beagleboard-v2013.04-rc2-r1.img’ saved [361336/361336]
  255.  
  256. voodoo@ubuntu:~$ sudo cp -v ./MLO-beagleboard-v2013.04-rc2-r1 /media/boot/MLO
  257. ‘./MLO-beagleboard-v2013.04-rc2-r1’ -> ‘/media/boot/MLO’
  258. voodoo@ubuntu:~$ sudo cp -v ./u-boot-beagleboard-v2013.04-rc2-r1.img /media/boot/u-boot.img
  259. ‘./u-boot-beagleboard-v2013.04-rc2-r1.img’ -> ‘/media/boot/u-boot.img’
  260. voodoo@ubuntu:~$ sudo apt-get install gtkterm
  261. Reading package lists... Done
  262. Building dependency tree
  263. Reading state information... Done
  264. The following extra packages will be installed:
  265. libvte-common libvte9
  266. The following NEW packages will be installed:
  267. gtkterm libvte-common libvte9
  268. 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
  269. Need to get 460 kB of archives.
  270. After this operation, 1,757 kB of additional disk space will be used.
  271. Do you want to continue [Y/n]? y
  272. Get:1 http://us.archive.ubuntu.com/ubuntu/ raring/main libvte-common all 1:0.28.2-5ubuntu1 [22.8 kB]
  273. Get:2 http://us.archive.ubuntu.com/ubuntu/ raring/main libvte9 amd64 1:0.28.2-5ubuntu1 [374 kB]
  274. Get:3 http://us.archive.ubuntu.com/ubuntu/ raring/universe gtkterm amd64 0.99.7~rc1-0.2ubuntu1 [63.4 kB]
  275. Fetched 460 kB in 0s (903 kB/s)
  276. Selecting previously unselected package libvte-common.
  277. (Reading database ... 102504 files and directories currently installed.)
  278. Unpacking libvte-common (from .../libvte-common_1%3a0.28.2-5ubuntu1_all.deb) ...
  279. Selecting previously unselected package libvte9.
  280. Unpacking libvte9 (from .../libvte9_1%3a0.28.2-5ubuntu1_amd64.deb) ...
  281. Selecting previously unselected package gtkterm.
  282. Unpacking gtkterm (from .../gtkterm_0.99.7~rc1-0.2ubuntu1_amd64.deb) ...
  283. Processing triggers for man-db ...
  284. Setting up libvte-common (1:0.28.2-5ubuntu1) ...
  285. Setting up libvte9 (1:0.28.2-5ubuntu1) ...
  286. Setting up gtkterm (0.99.7~rc1-0.2ubuntu1) ...
  287. Processing triggers for libc-bin ...
  288. ldconfig deferred processing now taking place
  289. voodoo@ubuntu:~$ sync
  290. voodoo@ubuntu:~$ sudo umount /media/boot
  291. voodoo@ubuntu:~$ dmesg | tail
  292. [ 439.515796] usbserial: USB Serial support registered for generic
  293. [ 439.534498] usbcore: registered new interface driver ftdi_sio
  294. [ 439.534532] usbserial: USB Serial support registered for FTDI USB Serial Device
  295. [ 439.535043] ftdi_sio 10-1.4:1.0: FTDI USB Serial Device converter detected
  296. [ 439.535248] usb 10-1.4: Detected FT232RL
  297. [ 439.535254] usb 10-1.4: Number of endpoints 2
  298. [ 439.535259] usb 10-1.4: Endpoint 1 MaxPacketSize 64
  299. [ 439.535265] usb 10-1.4: Endpoint 2 MaxPacketSize 64
  300. [ 439.535270] usb 10-1.4: Setting MaxPacketSize 64
  301. [ 439.535464] usb 10-1.4: FTDI USB Serial Device converter now attached to ttyUSB0
  302. voodoo@ubuntu:~$ gtkterm -p /dev/ttyUSB0 -s 115200
  303. voodoo@ubuntu:~$ gtkterm -p /dev/ttyUSB0 -s 115200
  304. voodoo@ubuntu:~$ sudo gtkterm -p /dev/ttyUSB0 -s 115200
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement