Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
livebox:beagleboneporting [2014/01/23 23:50] – [Reverse engineering an ipkg] brett | livebox:beagleboneporting [2014/10/25 10:45] – [Beagle bone notes] brett | ||
---|---|---|---|
Line 4: | Line 4: | ||
Notes on porting the HAH for the beagle bone. These notes really aren't for consumption by anybody but me as reminders for things I did whilst playing around on the Beagle Bone. | Notes on porting the HAH for the beagle bone. These notes really aren't for consumption by anybody but me as reminders for things I did whilst playing around on the Beagle Bone. | ||
+ | After playing with the default OS shipped with the beaglebone (angstrom) I decide that Ubuntu was far easy see [[/ | ||
===== Validating the cross compiler works ===== | ===== Validating the cross compiler works ===== | ||
Line 175: | Line 176: | ||
# mkdir -p / | # mkdir -p / | ||
</ | </ | ||
+ | |||
+ | Place the HAH package in the directory and build the Package files. | ||
+ | < | ||
+ | [root@bb-dev hah]# pwd | ||
+ | / | ||
+ | [root@bb-dev hah]# / | ||
+ | / | ||
+ | import md5 | ||
+ | Lost field license, GPLv2+ | ||
+ | |||
+ | [root@bb-dev hah]# ls -l | ||
+ | total 1328 | ||
+ | -rw-r--r--. 1 root root 1334146 Jan 24 19:59 hah_0.1_armv7a.ipk | ||
+ | -rw-r--r--. 1 root root 447 Jan 24 20:02 Packages | ||
+ | -rw-r--r--. 1 root root 8233 Jan 24 20:02 Packages.filelist | ||
+ | -rw-r--r--. 1 root root 332 Jan 24 20:02 Packages.gz | ||
+ | -rw-r--r--. 1 root root 30 Jan 24 20:02 Packages.stamps | ||
+ | [root@bb-dev hah]# | ||
+ | </ | ||
+ | |||
+ | Update the package caches on the BB - yes mine is in there now (look hard). | ||
+ | < | ||
+ | root@beaglebone:/ | ||
+ | Downloading http:// | ||
+ | Inflating http:// | ||
+ | Updated list of available packages in / | ||
+ | Downloading http:// | ||
+ | Inflating http:// | ||
+ | Updated list of available packages in / | ||
+ | Downloading http:// | ||
+ | Inflating http:// | ||
+ | Updated list of available packages in / | ||
+ | Downloading http:// | ||
+ | Inflating http:// | ||
+ | Updated list of available packages in / | ||
+ | Downloading http:// | ||
+ | Inflating http:// | ||
+ | Updated list of available packages in / | ||
+ | Downloading http:// | ||
+ | Inflating http:// | ||
+ | Updated list of available packages in / | ||
+ | Downloading http:// | ||
+ | Inflating http:// | ||
+ | Updated list of available packages in / | ||
+ | Downloading http:// | ||
+ | Inflating http:// | ||
+ | Updated list of available packages in / | ||
+ | root@beaglebone:/ | ||
+ | </ | ||
+ | |||
+ | Installing the HAH package | ||
+ | < | ||
+ | root@beaglebone:/ | ||
+ | Installing hah (0.1) to root... | ||
+ | Downloading http:// | ||
+ | Configuring hah. | ||
+ | | ||
+ | root@beaglebone:/ | ||
+ | </ | ||
+ | |||
+ | ===== connman is shit ===== | ||
+ | |||
+ | Connman has no right to be used on MY embedded hardware, yeah yeah I know all the argument about fall back and what if the network isn't etc etc... But really I don't give a shit, if the network is not up we are hosed. | ||
+ | |||
+ | I don't want connman anywhere near my beaglebone. | ||
+ | |||
+ | I want this -> http:// | ||
+ | |||
+ | How to remove connman and revert to traditional network interface start up. | ||
+ | |||
+ | < | ||
+ | systemctl disable connman.service | ||
+ | |||
+ | for i in pre-up up post-up pre-down down post-down; do | ||
+ | mkdir -p / | ||
+ | done | ||
+ | |||
+ | cat > / | ||
+ | auto lo | ||
+ | iface lo inet loopback | ||
+ | |||
+ | auto eth0 | ||
+ | iface eth0 inet static | ||
+ | address 192.168.1.100 | ||
+ | netmask 255.255.255.0 | ||
+ | gateway 192.168.1.1 | ||
+ | EOF | ||
+ | |||
+ | cat >/ | ||
+ | search local | ||
+ | nameserver 192.168.1.20 | ||
+ | EOF | ||
+ | |||
+ | cat > / | ||
+ | [Unit] | ||
+ | Description=Network interfaces | ||
+ | After=remount-rootfs.service | ||
+ | |||
+ | [Service] | ||
+ | RemainAfterExit=yes | ||
+ | ExecStart=/ | ||
+ | ExecStop=/ | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=basic.target | ||
+ | EOF | ||
+ | |||
+ | systemctl enable network.service | ||
+ | </ | ||
+ | |||
+ | ===== dmesg log filled with hdmi messages? ===== | ||
+ | |||
+ | After running the Beaglebone for a while you may notice messages like this | ||
+ | |||
+ | < | ||
+ | [drm: | ||
+ | </ | ||
+ | |||
+ | in the log called with dmesg. It's not really a problem unless you are trying to debug but still annoying. | ||
+ | |||
+ | To stop these edit the uEnv.txt file on the FAT partition (not uEnv.txt in /boot) | ||
+ | |||
+ | Mount the partition | ||
+ | < | ||
+ | mount / | ||
+ | </ | ||
+ | |||
+ | edit the uEnv.txt file to remove the drm_debug part | ||
+ | < | ||
+ | nano / | ||
+ | </ | ||
+ | |||
+ | and remove drm.debug=7 | ||
+ | |||
+ | Save the file: | ||
+ | < | ||
+ | Ctrl-X, Y | ||
+ | </ | ||
+ | |||
+ | Unmount the partition: | ||
+ | < | ||
+ | umount /mnt/card | ||
+ | </ | ||
+ | |||
+ | Reboot the board: | ||
+ | < | ||
+ | shutdown -r now | ||
+ | </ | ||
+ | |||
+ | ===== backing up the BeagleBone Black eMMC ===== | ||
+ | |||
+ | After you have got the BBB up and running how you like it, backing up is always a good idea. | ||
+ | |||
+ | You can of course back up the ini settings, plugboard scripts etc using the web GUI but I like to keep a backup of the entire eMMC. | ||
+ | |||
+ | There are a few methods to be found on the 'net that require the use of a script on a microSD card. This is ideally the best way but requires | ||
+ | stopping the BBB (and if SWMBO is expecting things to happen, that's never good) | ||
+ | |||
+ | So here is an option to use dd over ssh to backup to another PC (in my case a mac) | ||
+ | |||
+ | on the BBB | ||
+ | < | ||
+ | sudo dd if=/ | ||
+ | </ | ||
+ | |||
+ | n.b. the block size is set on the BBB using bs=1M but on the mac HAS to be bs=1m (lowercase) (I'm not sure if this is the case :) on a pc) | ||
+ | |||
+ | To restore. This needs to be done after booting from an SD card to free up the eMMC | ||
+ | The eMMC is then mmcblk1 not mmcblk0 | ||
+ | < | ||
+ | ssh themac@192.168.0.X "dd of=/ | ||
+ | </ | ||
+ | |||
+ | Then power down, remove the SD card and reboot. |