Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- voodoo@ubuntu:~$ lsb_release --all
- No LSB modules are available.
- Distributor ID: Ubuntu
- Description: Ubuntu Raring Ringtail (development branch)
- Release: 13.04
- Codename: raring
- voodoo@ubuntu:~$ dpkg --
- --abort-after --no-debsig
- --add-architecture --no-force-
- --admindir= --no-triggers
- --assert-multi-arch --path-exclude=
- --assert-working-epoch --path-include=
- --audit --print-architecture
- --auto-deconfigure --print-avail
- --clear-avail --print-foreign-architectures
- --clear-selections --purge
- --compare-versions --record-avail
- --configure --refuse-downgrade
- --debug= --remove
- --extract --remove-architecture
- --force- --root=
- --force-help --search
- --forget-old-unavail --selected-only
- --get-selections --set-selections
- --help --skip-same-version
- --ignore-depends= --status
- --install --status-fd
- --instdir= --status-logger=
- --list --triggers
- --listfiles --triggers-only
- --log= --unpack
- --merge-avail --update-avail
- --no-act --version
- voodoo@ubuntu:~$ dpkg --print-architecture
- amd64
- voodoo@ubuntu:~$ sudo apt-get install parted
- [sudo] password for voodoo:
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- parted is already the newest version.
- 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
- voodoo@ubuntu:~$ sudo fdisk -l
- Disk /dev/sda: 120.0 GB, 120034123776 bytes
- 255 heads, 63 sectors/track, 14593 cylinders, total 234441648 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: 0x000ea522
- Device Boot Start End Blocks Id System
- /dev/sda1 * 2048 167444479 83721216 83 Linux
- /dev/sda2 167446526 234440703 33497089 5 Extended
- /dev/sda5 167446528 234440703 33497088 82 Linux swap / Solaris
- Disk /dev/sdd: 4029 MB, 4029677568 bytes
- 40 heads, 6 sectors/track, 32793 cylinders, total 7870464 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: 0x0007b333
- Device Boot Start End Blocks Id System
- /dev/sdd1 * 2048 133119 65536 e W95 FAT16 (LBA)
- voodoo@ubuntu:~$ export DISK=/dev/sdd
- voodoo@ubuntu:~$ sudo dd if=/dev/zero of=${DISK} bs=1024 count=1024
- 1024+0 records in
- 1024+0 records out
- 1048576 bytes (1.0 MB) copied, 0.387528 s, 2.7 MB/s
- voodoo@ubuntu:~$ sudo parted --script ${DISK} mklabel msdos
- voodoo@ubuntu:~$ sudo fdisk ${DISK} << __EOF__
- > n
- > p
- > 1
- >
- > +64M
- > t
- > e
- > p
- > w
- > __EOF__
- 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-7870463, default 2048): Using default value 2048
- Last sector, +sectors or +size{K,M,G} (2048-7870463, default 7870463):
- 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/sdd: 4029 MB, 4029677568 bytes
- 124 heads, 62 sectors/track, 1023 cylinders, total 7870464 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: 0x000b8c29
- Device Boot Start End Blocks Id System
- /dev/sdd1 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.
- voodoo@ubuntu:~$ sudo fdisk /dev/sdb -l
- voodoo@ubuntu:~$ sudo fdisk -l /dev/sdb
- voodoo@ubuntu:~$ sudo fdisk -l
- Disk /dev/sda: 120.0 GB, 120034123776 bytes
- 255 heads, 63 sectors/track, 14593 cylinders, total 234441648 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: 0x000ea522
- Device Boot Start End Blocks Id System
- /dev/sda1 * 2048 167444479 83721216 83 Linux
- /dev/sda2 167446526 234440703 33497089 5 Extended
- /dev/sda5 167446528 234440703 33497088 82 Linux swap / Solaris
- Disk /dev/sdd: 4029 MB, 4029677568 bytes
- 40 heads, 6 sectors/track, 32793 cylinders, total 7870464 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: 0x000b8c29
- Device Boot Start End Blocks Id System
- /dev/sdd1 2048 133119 65536 e W95 FAT16 (LBA)
- voodoo@ubuntu:~$
- voodoo@ubuntu:~$ sudo parted --script ${DISK} set 1 boot on
- voodoo@ubuntu:~$ sudo fdisk -l
- Disk /dev/sda: 120.0 GB, 120034123776 bytes
- 255 heads, 63 sectors/track, 14593 cylinders, total 234441648 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: 0x000ea522
- Device Boot Start End Blocks Id System
- /dev/sda1 * 2048 167444479 83721216 83 Linux
- /dev/sda2 167446526 234440703 33497089 5 Extended
- /dev/sda5 167446528 234440703 33497088 82 Linux swap / Solaris
- Disk /dev/sdd: 4029 MB, 4029677568 bytes
- 40 heads, 6 sectors/track, 32793 cylinders, total 7870464 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: 0x000b8c29
- Device Boot Start End Blocks Id System
- /dev/sdd1 * 2048 133119 65536 e W95 FAT16 (LBA)
- voodoo@ubuntu:~$ sudo mkfs.vfat -F 16 ${DISK}1 -n boot
- mkfs.vfat 3.0.14 (23 Jan 2023)
- voodoo@ubuntu:~$ sudo fdisk ${DISK} << __EOF__
- > n
- > p
- > 2
- >
- >
- > w
- > __EOF__
- Command (m for help): Partition type:
- p primary (1 primary, 0 extended, 3 free)
- e extended
- Select (default p): Partition number (1-4, default 2): First sector (133120-7870463, default 133120): Using default value 133120
- Last sector, +sectors or +size{K,M,G} (133120-7870463, default 7870463): Using default value 7870463
- Command (m for help): The partition table has been altered!
- Calling ioctl() to re-read partition table.
- Syncing disks.
- voodoo@ubuntu:~$ sudo fdisk -l
- Disk /dev/sda: 120.0 GB, 120034123776 bytes
- 255 heads, 63 sectors/track, 14593 cylinders, total 234441648 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: 0x000ea522
- Device Boot Start End Blocks Id System
- /dev/sda1 * 2048 167444479 83721216 83 Linux
- /dev/sda2 167446526 234440703 33497089 5 Extended
- /dev/sda5 167446528 234440703 33497088 82 Linux swap / Solaris
- Disk /dev/sdd: 4029 MB, 4029677568 bytes
- 124 heads, 62 sectors/track, 1023 cylinders, total 7870464 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: 0x000b8c29
- Device Boot Start End Blocks Id System
- /dev/sdd1 * 2048 133119 65536 e W95 FAT16 (LBA)
- /dev/sdd2 133120 7870463 3868672 83 Linux
- voodoo@ubuntu:~$ sudo mkfs.ext4 ${DISK}2 -L rootfs
- mke2fs 1.42.5 (29-Jul-2012)
- Filesystem label=rootfs
- OS type: Linux
- Block size=4096 (log=2)
- Fragment size=4096 (log=2)
- Stride=0 blocks, Stripe width=0 blocks
- 241920 inodes, 967168 blocks
- 48358 blocks (5.00%) reserved for the super user
- First data block=0
- Maximum filesystem blocks=994050048
- 30 block groups
- 32768 blocks per group, 32768 fragments per group
- 8064 inodes per group
- Superblock backups stored on blocks:
- 32768, 98304, 163840, 229376, 294912, 819200, 884736
- Allocating group tables: done
- Writing inode tables: done
- Creating journal (16384 blocks): done
- Writing superblocks and filesystem accounting information: done
- voodoo@ubuntu:~$
- voodoo@ubuntu:~$ sudo mkdir -p /media/boot/
- voodoo@ubuntu:~$ sudo mkdir -p /media/rootfs/
- voodoo@ubuntu:~$ sudo mount ${DISK}1 /media/boot/
- voodoo@ubuntu:~$ wget http://rcn-ee.net/deb/tools/beagleboard/MLO-beagleboard-v2013.04-rc2-r1
- --2013-04-17 23:05:20-- http://rcn-ee.net/deb/tools/beagleboard/MLO-beagleboard-v2013.04-rc2-r1
- Resolving rcn-ee.net (rcn-ee.net)... 69.163.130.148
- Connecting to rcn-ee.net (rcn-ee.net)|69.163.130.148|:80... connected.
- HTTP request sent, awaiting response... 200 OK
- Length: 47156 (46K) [text/plain]
- Saving to: ‘MLO-beagleboard-v2013.04-rc2-r1’
- 100%[========================================================================================================>] 47,156 96.5KB/s in 0.5s
- 2013-04-17 23:05:21 (96.5 KB/s) - ‘MLO-beagleboard-v2013.04-rc2-r1’ saved [47156/47156]
- voodoo@ubuntu:~$ wget http://rcn-ee.net/deb/tools/beagleboard/u-boot-beagleboard-v2013.04-rc2-r1.img
- --2013-04-17 23:05:29-- http://rcn-ee.net/deb/tools/beagleboard/u-boot-beagleboard-v2013.04-rc2-r1.img
- Resolving rcn-ee.net (rcn-ee.net)... 69.163.130.148
- Connecting to rcn-ee.net (rcn-ee.net)|69.163.130.148|:80... connected.
- HTTP request sent, awaiting response... 200 OK
- Length: 361336 (353K) [text/plain]
- Saving to: ‘u-boot-beagleboard-v2013.04-rc2-r1.img’
- 100%[========================================================================================================>] 361,336 104KB/s in 3.4s
- 2013-04-17 23:05:33 (104 KB/s) - ‘u-boot-beagleboard-v2013.04-rc2-r1.img’ saved [361336/361336]
- voodoo@ubuntu:~$ sudo cp -v ./MLO-beagleboard-v2013.04-rc2-r1 /media/boot/MLO
- ‘./MLO-beagleboard-v2013.04-rc2-r1’ -> ‘/media/boot/MLO’
- voodoo@ubuntu:~$ sudo cp -v ./u-boot-beagleboard-v2013.04-rc2-r1.img /media/boot/u-boot.img
- ‘./u-boot-beagleboard-v2013.04-rc2-r1.img’ -> ‘/media/boot/u-boot.img’
- voodoo@ubuntu:~$ sudo apt-get install gtkterm
- Reading package lists... Done
- Building dependency tree
- Reading state information... Done
- The following extra packages will be installed:
- libvte-common libvte9
- The following NEW packages will be installed:
- gtkterm libvte-common libvte9
- 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
- Need to get 460 kB of archives.
- After this operation, 1,757 kB of additional disk space will be used.
- Do you want to continue [Y/n]? y
- Get:1 http://us.archive.ubuntu.com/ubuntu/ raring/main libvte-common all 1:0.28.2-5ubuntu1 [22.8 kB]
- Get:2 http://us.archive.ubuntu.com/ubuntu/ raring/main libvte9 amd64 1:0.28.2-5ubuntu1 [374 kB]
- Get:3 http://us.archive.ubuntu.com/ubuntu/ raring/universe gtkterm amd64 0.99.7~rc1-0.2ubuntu1 [63.4 kB]
- Fetched 460 kB in 0s (903 kB/s)
- Selecting previously unselected package libvte-common.
- (Reading database ... 102504 files and directories currently installed.)
- Unpacking libvte-common (from .../libvte-common_1%3a0.28.2-5ubuntu1_all.deb) ...
- Selecting previously unselected package libvte9.
- Unpacking libvte9 (from .../libvte9_1%3a0.28.2-5ubuntu1_amd64.deb) ...
- Selecting previously unselected package gtkterm.
- Unpacking gtkterm (from .../gtkterm_0.99.7~rc1-0.2ubuntu1_amd64.deb) ...
- Processing triggers for man-db ...
- Setting up libvte-common (1:0.28.2-5ubuntu1) ...
- Setting up libvte9 (1:0.28.2-5ubuntu1) ...
- Setting up gtkterm (0.99.7~rc1-0.2ubuntu1) ...
- Processing triggers for libc-bin ...
- ldconfig deferred processing now taking place
- voodoo@ubuntu:~$ sync
- voodoo@ubuntu:~$ sudo umount /media/boot
- voodoo@ubuntu:~$ dmesg | tail
- [ 439.515796] usbserial: USB Serial support registered for generic
- [ 439.534498] usbcore: registered new interface driver ftdi_sio
- [ 439.534532] usbserial: USB Serial support registered for FTDI USB Serial Device
- [ 439.535043] ftdi_sio 10-1.4:1.0: FTDI USB Serial Device converter detected
- [ 439.535248] usb 10-1.4: Detected FT232RL
- [ 439.535254] usb 10-1.4: Number of endpoints 2
- [ 439.535259] usb 10-1.4: Endpoint 1 MaxPacketSize 64
- [ 439.535265] usb 10-1.4: Endpoint 2 MaxPacketSize 64
- [ 439.535270] usb 10-1.4: Setting MaxPacketSize 64
- [ 439.535464] usb 10-1.4: FTDI USB Serial Device converter now attached to ttyUSB0
- voodoo@ubuntu:~$ gtkterm -p /dev/ttyUSB0 -s 115200
- voodoo@ubuntu:~$ gtkterm -p /dev/ttyUSB0 -s 115200
- voodoo@ubuntu:~$ sudo gtkterm -p /dev/ttyUSB0 -s 115200
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement