Asus V7-P7H55E - FreeBSD - 2014 archive
Back to main FreeBSD page for this machine.
2014 archive
2014-10-25: ada1p4 - install Firefox package:
All repositories are up-to-date. Updating database digests format: 100% New version of pkg detected; it needs to be installed first. The following 1 packages will be affected (of 0 checked): Installed packages to be REINSTALLED: pkg-1.3.8_3 (needed shared library changed) The process will require 82 B more space. 2 MB to be downloaded. Proceed with this action? [y/N]: y Fetching pkg-1.3.8_3.txz: 100% 2 MB 2.3M/s 00:01 Checking integrity... done (0 conflicting) [1/1] Reinstalling pkg-1.3.8_3: 100% Updating FreeBSD repository catalogue... FreeBSD repository is up-to-date. All repositories are up-to-date. pkg: ruby19-bdb has a missing dependency: ruby The following 7 packages will be affected (of 0 checked): New packages to be INSTALLED: firefox: 33.0,1 hunspell: 1.3.3 gstreamer1-plugins-good: 1.2.4_1 gstreamer1-plugins: 1.2.4 gstreamer1: 1.2.4 gstreamer1-libav: 1.2.4_1 soundtouch: 1.8.0_1 The process will require 103 MB more space. 38 MB to be downloaded. Proceed with this action? [y/N]: y Fetching firefox-33.0,1.txz: 100% 32 MB 1.6M/s 00:21 Fetching hunspell-1.3.3.txz: 100% 214 KB 219.1k/s 00:01 Fetching gstreamer1-plugins-good-1.2.4_1.txz: 100% 1 MB 1.1M/s 00:01 Fetching gstreamer1-plugins-1.2.4.txz: 100% 1 MB 1.1M/s 00:01 Fetching gstreamer1-1.2.4.txz: 100% 1 MB 1.1M/s 00:01 Fetching gstreamer1-libav-1.2.4_1.txz: 100% 2 MB 1.3M/s 00:02 Fetching soundtouch-1.8.0_1.txz: 100% 64 KB 66.0k/s 00:01 Checking integrity... done (0 conflicting) [1/7] Installing gstreamer1-1.2.4: 100% [2/7] Installing gstreamer1-plugins-1.2.4: 100% [3/7] Installing hunspell-1.3.3: 100% [4/7] Installing gstreamer1-plugins-good-1.2.4_1: 100% [5/7] Installing gstreamer1-libav-1.2.4_1: 100% [6/7] Installing soundtouch-1.8.0_1: 100% [7/7] Installing firefox-33.0,1: 100%
well, now it is installed at least.
2014-10-25: ada1p4 - check if there is a chromium package available:
root@kg-v7# pkg search chromium chromium-38.0.2125.104_1 chromium-bsu-0.9.15.1_3
indeed. If the port build fails again I can try the package. What about firefox?
root@kg-v7# pkg search firefox firefox-33.0,1 firefox-esr-31.2.0,1 firefox-esr-i18n-31.2.0 firefox-i18n-33.0 linux-firefox-33.0,1 xpi-firefox-showcase-0.9.5.6
cool.
2014-10-25: ada1p4 - ports. try to build Chromium:
root@kg-v7# portinstall -R chromium [Reading data from pkg(8) ... - 441 packages found - done] [Gathering depends for www/chromium ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ done] ---> Installing 'chromium-38.0.2125.104_1' from a port (www/chromium) ---> Building '/usr/ports/www/chromium' ===> Cleaning for chromium-38.0.2125.104_1 [...] ../../third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp:336:69: error: no member named 'blend_method' in 'WebPIterator' m_frameBufferCache[i].setAlphaBlendSource(animatedFrame.blend_method == WEBP_MUX_BLEND ? ImageFrame::BlendAtopPreviousFrame : ImageFrame::BlendAtopBgcolor); ~~~~~~~~~~~~~ ^ ../../third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp:336:85: error: use of undeclared identifier 'WEBP_MUX_BLEND' m_frameBufferCache[i].setAlphaBlendSource(animatedFrame.blend_method == WEBP_MUX_BLEND ? ImageFrame::BlendAtopPreviousFrame : ImageFrame::BlendAtopBgcolor); ^ ../../third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp:344:109: error: no member named 'has_alpha' in 'WebPIterator' m_frameBufferCache[i].setRequiredPreviousFrameIndex(findRequiredPreviousFrame(i, !animatedFrame.has_alpha)); ~~~~~~~~~~~~~ ^ 3 errors generated. [6456/15297] CXX obj/third_party/WebKit/Source/platform/image-encoders/skia/blink_platform.PNGImageEncoder.o ninja: build stopped: subcommand failed. ===> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to the maintainer. *** Error code 1 Stop. make[1]: stopped in /usr/ports/www/chromium *** Error code 1 Stop. make: stopped in /usr/ports/www/chromium ** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall20141025-26684-1vw0qlt env make ** Fix the problem and try again. ** Listing the failed packages (-:ignored / *:skipped / !:failed) ! www/chromium (unknown build error)
not good.
2014-10-25: ada1p4 - ports. Update the ports tree via portsnap fetch; portsnap update
. Disabled the hal port:
root@kg-v7# mv /usr/ports/sysutils/hal /usr/ports/sysutils/hal_
When I try to install the nspr port I get this:
root@kg-v7# portinstall -R nspr [Reading data from pkg(8) ... - 415 packages found - done] [Gathering depends for devel/nspr .... done] ** Port marked as IGNORE: print/indexinfo: pkg(8) must be version 1.3.8 or greater, but you have 1.2.6. You must upgrade the ports-mgmt/pkg port first ---> Skipping 'devel/nspr' because a requisite port 'print/indexinfo' failed (specify -k to force) ** Listing the failed packages (-:ignored / *:skipped / !:failed) - print/indexinfo * devel/nspr
clear enough. After upgrading pkg, I update portupgrade (which upgrades a few other ports too).
2014-10-25: ada1p4 - ports. The ports tree was last updated April 30th, 2014:
root@kg-v7# ll /usr/ports/I* -rw-r--r-- 1 root wheel 29572592 Apr 30 17:49 /usr/ports/INDEX-10 -rw-r--r-- 1 root wheel 48429056 Apr 30 17:50 /usr/ports/INDEX-10.db -rw-r--r-- 1 root wheel 29694778 Apr 30 17:49 /usr/ports/INDEX-8 -rw-r--r-- 1 root wheel 29573246 Apr 30 17:49 /usr/ports/INDEX-9
Now I need to update it again. I hope I won't break too many things.
2014-08-11: ada1p4 - testing an external drive (usb 3.0) WD Elements 1 TB, the drive connects, but the attach fails. Details:
root@kg-v7# uname -a FreeBSD kg-v7.kg4.no 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
From /var/log/messages:
Aug 11 19:29:48 kg-v7 kernel: ugen0.3: <Western Digital> at usbus0 Aug 11 19:29:48 kg-v7 kernel: umass0: <MSC Bulk-Only Transport> on usbus0 Aug 11 19:29:48 kg-v7 kernel: umass0: SCSI over Bulk-Only; quirks = 0x4101 Aug 11 19:29:48 kg-v7 kernel: umass0:7:0:-1: Attached to scbus7 Aug 11 19:29:57 kg-v7 kernel: (da0:umass-sim0:0:0:0): got CAM status 0x44 Aug 11 19:29:57 kg-v7 kernel: (da0:umass-sim0:0:0:0): fatal error, failed to attach to device
usbconfig
root@kg-v7# usbconfig -d ugen0.3 ugen0.3: <Elements 1048 Western Digital> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA)
usbconfig device description
root@kg-v7# usbconfig -d ugen0.3 dump_device_desc ugen0.3: <Elements 1048 Western Digital> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0210 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x1058 idProduct = 0x1048 bcdDevice = 0x1022 iManufacturer = 0x0001 <Western Digital> iProduct = 0x0002 <Elements 1048> iSerialNumber = 0x0005 <57583631454232414D343333> bNumConfigurations = 0x0001
usbconfig current config
root@kg-v7# usbconfig -d ugen0.3 dump_curr_config_desc ugen0.3: <Elements 1048 Western Digital> at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0020 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0004 <USB Mass Storage> bmAttributes = 0x0080 bMaxPower = 0x00fa Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0002 bInterfaceClass = 0x0008 bInterfaceSubClass = 0x0006 bInterfaceProtocol = 0x0050 iInterface = 0x0006 <MSC Bulk-Only Transport> Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 <IN> bmAttributes = 0x0002 <BULK> wMaxPacketSize = 0x0200 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0002 <OUT> bmAttributes = 0x0002 <BULK> wMaxPacketSize = 0x0200 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000
strange.
2014-05-04: ada1p4 - adding my user to the dialer group:
root@kg-v7# pw groupshow dialer dialer:*:68: root@kg-v7# pw groupmod dialer -m tingo root@kg-v7# pw groupshow dialer dialer:*:68:tingo
ok.
2014-05-01: ada1p4 - I inserted a 4GB Lexar SDHC card in the card reader, it shows up as /dev/da0 (I mounted the default FAT partition to verify). Now lets get that image onto the card:
# pwd /usr/home/tingo/work/crochet-freebsd # dd if=./work/FreeBSD-armv6-10.0-RPI-B-r265148.img of=/dev/da0 bs=1m 953+1 records in 953+1 records out 1000000000 bytes transferred in 138.799838 secs (7204619 bytes/sec)
ok. For fun, let's see what gpart and disktype thinks about the card now:
# gpart show -p /dev/da0 => 63 7829441 da0 MBR (3.7G) 63 34776 da0s1 !12 [active] (17M) 34839 1918278 da0s2 freebsd (937M) 1953117 5876387 - free - (2.8G)
disktype
# disktype /dev/da0 --- /dev/da0 Character device, size 3.733 GiB (4008706048 bytes) DOS/MBR partition map Partition 1: 16.98 MiB (17805312 bytes, 34776 sectors from 63, bootable) Type 0x0C (Win95 FAT32 (LBA)) FAT16 file system (hints score 5 of 5) Volume size 16.95 MiB (17768448 bytes, 4338 clusters of 4 KiB) Volume name "BOOT" Partition 2: 936.7 MiB (982158336 bytes, 1918278 sectors from 34839) Type 0xA5 (FreeBSD) BSD disklabel (at sector 1), 8 partitions Partition a: 936.7 MiB (982158336 bytes, 1918278 sectors from 0) Type 7 (4.2BSD fast file system) Includes the disklabel and boot code UFS2 file system, 64 KiB offset, little-endian Last mounted at "/usr/home/tingo/work/crochet-freebsd/work/_.mount.freebsd" Partition c: 936.7 MiB (982158336 bytes, 1918278 sectors from 0) Type 0 (Unused)
Interesting. Let's mount and examine the first partition:
root@kg-v7# mount -t msdosfs /dev/da0s1 /mnt root@kg-v7# ls -l /mnt total 3504 -rwxr-xr-x 1 root wheel 17816 May 1 02:36 bootcode.bin -rwxr-xr-x 1 root wheel 101 May 1 02:36 config.txt -rwxr-xr-x 1 root wheel 5746 May 1 02:36 fixup.dat -rwxr-xr-x 1 root wheel 2037 May 1 02:36 fixup_cd.dat -rwxr-xr-x 1 root wheel 15940 May 1 02:36 rpi.dtb -rwxr-xr-x 1 root wheel 2497684 May 1 02:36 start.elf -rwxr-xr-x 1 root wheel 471256 May 1 02:36 start_cd.elf -rwxr-xr-x 1 root wheel 249667 May 1 02:36 ubldr -rwxr-xr-x 1 root wheel 306020 May 1 02:36 uboot.img -rwxr-xr-x 1 root wheel 89 May 1 02:36 uenv.txt
and umount it:
root@kg-v7# umount /mnt
Next, try the card in the Raspberry Pi.
2014-05-01: ada1p4 - play more with crochet:
$ sh crochet.sh -b RaspberryPi Starting at Thu May 1 00:10:42 CEST 2014 Board: RaspberryPi Source version is: r265148 Building FreeBSD version: 10.0 Image name is: /usr/home/tingo/work/crochet-freebsd/work/FreeBSD-armv6-10.0-RPI-B-r265148.img Building FreeBSD version: 10.0 Object files are at: /usr/home/tingo/work/crochet-freebsd/work/obj/arm.armv6/usr/src Found suitable FreeBSD source tree in: /usr/src Found FreeBSD xdev tools for armv6 U-Boot build requires 'gsed' Please install textproc/gsed and re-run this script.
Ok, installing gsed from ports, the retry crochet:
$ sh crochet.sh -b RaspberryPi Starting at Thu May 1 00:12:23 CEST 2014 Board: RaspberryPi Source version is: r265148 Building FreeBSD version: 10.0 Image name is: /usr/home/tingo/work/crochet-freebsd/work/FreeBSD-armv6-10.0-RPI-B-r265148.img Building FreeBSD version: 10.0 Object files are at: /usr/home/tingo/work/crochet-freebsd/work/obj/arm.armv6/usr/src Found suitable FreeBSD source tree in: /usr/src Found FreeBSD xdev tools for armv6 Expected to see U-Boot sources in /usr/home/tingo/work/crochet-freebsd/u-boot-rpi Use the following command to get the U-Boot sources $ git clone git://github.com/gonzoua/u-boot-pi.git /usr/home/tingo/work/crochet-freebsd/u-boot-rpi Edit $RPI_UBOOT_SRC in config.sh if you want the sources in a different directory. Run this script again after you have the U-Boot sources installed.
allrighty then...getting U-Boot:
$ git clone git://github.com/gonzoua/u-boot-pi.git ./u-boot-rpi Cloning into './u-boot-rpi'... remote: Reusing existing pack: 193433, done. remote: Total 193433 (delta 0), reused 0 (delta 0) Receiving objects: 100% (193433/193433), 54.57 MiB | 666.00 KiB/s, done. Resolving deltas: 100% (153739/153739), done. Checking connectivity... done.
ok, retry crochet again:
$ sh crochet.sh -b RaspberryPi Starting at Thu May 1 00:18:36 CEST 2014 Board: RaspberryPi Source version is: r265148 Building FreeBSD version: 10.0 Image name is: /usr/home/tingo/work/crochet-freebsd/work/FreeBSD-armv6-10.0-RPI-B-r265148.img Building FreeBSD version: 10.0 Object files are at: /usr/home/tingo/work/crochet-freebsd/work/obj/arm.armv6/usr/src Found suitable FreeBSD source tree in: /usr/src Found FreeBSD xdev tools for armv6 Found U-Boot sources in: /usr/home/tingo/work/crochet-freebsd/u-boot-rpi Building FreeBSD armv6 world at Thu May 1 00:18:36 CEST 2014 (Logging to /usr/home/tingo/work/crochet-freebsd/work/_.buildworld.armv6.log) Failed to build FreeBSD armv6 world. Log in /usr/home/tingo/work/crochet-freebsd/work/_.buildworld.armv6.log Stop. make[2]: stopped in /usr/src *** Error code 1 Stop. make[1]: stopped in /usr/src *** Error code 1 Stop. make: stopped in /usr/src
Hmm, that didn't work to well. Ok, try as root:
# sh crochet.sh -b RaspberryPi Starting at Thu May 1 00:57:57 CEST 2014 Board: RaspberryPi Source version is: r265148 Building FreeBSD version: 10.0 Image name is: /usr/home/tingo/work/crochet-freebsd/work/FreeBSD-armv6-10.0-RPI-B-r265148.img Building FreeBSD version: 10.0 Object files are at: /usr/home/tingo/work/crochet-freebsd/work/obj/arm.armv6/usr/src Found suitable FreeBSD source tree in: /usr/src Found FreeBSD xdev tools for armv6 Found U-Boot sources in: /usr/home/tingo/work/crochet-freebsd/u-boot-rpi Building FreeBSD armv6 world at Thu May 1 00:57:57 CEST 2014 (Logging to /usr/home/tingo/work/crochet-freebsd/work/_.buildworld.armv6.log) [...I will see later if this works better...] Building FreeBSD armv6-RPI-B kernel at Thu May 1 02:27:46 CEST 2014 (Logging to /usr/home/tingo/work/crochet-freebsd/work/_.buildkernel.armv6-RPI-B.log) Building FreeBSD armv6-RPI-B ubldr at Thu May 1 02:35:46 CEST 2014 (Logging to /usr/home/tingo/work/crochet-freebsd/work/ubldr-armv6-RPI-B/_.ubldr.armv6-RPI-B.build.log) Patching U-Boot at Thu May 1 02:35:50 CEST 2014 (Logging to /usr/home/tingo/work/crochet-freebsd/u-boot-rpi/_.uboot.patch.log) /usr/home/tingo/work/crochet-freebsd/board/RaspberryPi/files/uboot-rpi_patch10_makefile_lc.patch /usr/home/tingo/work/crochet-freebsd/board/RaspberryPi/files/uboot-rpi_patch11_examples_api_makefile_static.patch /usr/home/tingo/work/crochet-freebsd/board/RaspberryPi/files/uboot-rpi_patch13_sdhci_no_high_speed.patch Applying patch /usr/home/tingo/work/crochet-freebsd/board/RaspberryPi/files/uboot-rpi_patch10_makefile_lc.patch Applying patch /usr/home/tingo/work/crochet-freebsd/board/RaspberryPi/files/uboot-rpi_patch11_examples_api_makefile_static.patch Applying patch /usr/home/tingo/work/crochet-freebsd/board/RaspberryPi/files/uboot-rpi_patch13_sdhci_no_high_speed.patch Configuring U-Boot at Thu May 1 02:35:50 CEST 2014 (Logging to /usr/home/tingo/work/crochet-freebsd/u-boot-rpi/_.uboot.configure.log) Building U-Boot at Thu May 1 02:35:50 CEST 2014 (Logging to /usr/home/tingo/work/crochet-freebsd/u-boot-rpi/_.uboot.build.log) Creating a 1000MB raw disk image in: /usr/home/tingo/work/crochet-freebsd/work/FreeBSD-armv6-10.0-RPI-B-r265148.img Partitioning the raw disk image at Thu May 1 02:36:09 CEST 2014 gpart create -s MBR md0 md0 created Creating a 17m FAT partition at Thu May 1 02:36:09 CEST 2014 with start block 63 and label BOOT active set on md0s1 Creating an auto-sized UFS partition at Thu May 1 02:36:09 CEST 2014 md0s2 created /dev/md0s2a: 936.7MB (1918272 sectors) block size 32768, fragment size 4096 using 4 cylinder groups of 234.19MB, 7494 blks, 30080 inodes. super-block backups (for fsck -b #) at: 192, 479808, 959424, 1439040 tunefs: soft updates set Using inode 4 in cg 0 for 4194304 byte journal tunefs: soft updates journaling set tunefs: NFSv4 ACLs set Mounting all file systems: Mounting FAT partition 1 at /usr/home/tingo/work/crochet-freebsd/work/_.mount.boot Mounting UFS partition 1 at /usr/home/tingo/work/crochet-freebsd/work/_.mount.freebsd Installing ubldr in . Installing FreeBSD world at Thu May 1 02:36:10 CEST 2014 Destination: /usr/home/tingo/work/crochet-freebsd/work/_.mount.freebsd Overlaying board-specific files from /usr/home/tingo/work/crochet-freebsd/board/RaspberryPi/overlay 3 blocks Installing FreeBSD kernel at Thu May 1 02:36:36 CEST 2014 Destination: /usr/home/tingo/work/crochet-freebsd/work/_.mount.freebsd Installing ubldr in boot Unmounting /usr/home/tingo/work/crochet-freebsd/work/_.mount.boot umount: unmount of /usr/home/tingo/work/crochet-freebsd/work/_.mount.boot failed: Device busy rmdir: /usr/home/tingo/work/crochet-freebsd/work/_.mount.boot: Device busy Unmounting /usr/home/tingo/work/crochet-freebsd/work/_.mount.freebsd Releasing md0 mdconfig: ioctl(/dev/mdctl): Device busy DONE. Completed disk image is in: /usr/home/tingo/work/crochet-freebsd/work/FreeBSD-armv6-10.0-RPI-B-r265148.img Copy to a suitable memory card using a command such as: dd if=/usr/home/tingo/work/crochet-freebsd/work/FreeBSD-armv6-10.0-RPI-B-r265148.img of=/dev/da0 bs=1m (Replace /dev/da0 with the appropriate path for your card reader.) Finished at Thu May 1 02:36:49 CEST 2014
it did work much better. Nice.
2014-04-30: ada1p4 - play with crochet again:
$ sh crochet.sh -b RaspberryPi Starting at Wed Apr 30 18:25:07 CEST 2014 Board: RaspberryPi Source version is: r265148 Building FreeBSD version: 10.0 Image name is: /usr/home/tingo/work/crochet-freebsd/work/FreeBSD-armv6-10.0-RPI-B-r265148.img Building FreeBSD version: 10.0 Object files are at: /usr/home/tingo/work/crochet-freebsd/work/obj/arm.armv6/usr/src Found suitable FreeBSD source tree in: /usr/src Can't find appropriate FreeBSD xdev tools. If you have FreeBSD-CURRENT sources in /usr/src, you can build these with the following command: cd /usr/src && sudo make XDEV=arm XDEV_ARCH=armv6 WITH_GCC=1 WITHOUT_CLANG=1 WITHOUT_CLANG_IS_CC=1 xdev Run this script again after you have the xdev tools installed.
Ok, build xdev:
root@kg-v7# cd /usr/src && make XDEV=arm XDEV_ARCH=armv6 WITH_GCC=1 WITHOUT_CLANG=1 WITHOUT_CLANG_IS_CC=1 xdev [....] sh /usr/src/tools/install.sh -C -o root -g wheel -m 444 libln.a //usr/armv6-freebsd/usr/lib //usr/armv6-freebsd/usr/lib/libl.a -> //usr/armv6-freebsd/usr/lib/libln.a //usr/armv6-freebsd/usr/lib/libfl.a -> //usr/armv6-freebsd/usr/lib/libln.a cd //usr/armv6-freebsd/usr/bin; mkdir -p ../../../../usr/bin; for i in *; do ln -sf ../..//usr/armv6-freebsd/usr/bin/$i ../../../../usr/bin/armv6-freebsd-$i; ln -sf ../..//usr/armv6-freebsd/usr/bin/$i ../../../../usr/bin/armv6-freebsd10.0-$i; done
that was xdev. What's next?
2014-04-30: ada1p4 - play with crochet: arguments:
$ sh crochet.sh Starting at Wed Apr 30 17:57:35 CEST 2014 Usage: sudo crochet.sh [-b <board>|-c <configfile>] -b <board>: Load standard configuration for board (Equivalent to loading a config file that contains only a single board_setup command.) -c <file>: Load configuration from file -e <email>: Email address to receive build status -u: Update source tree -v: Print more detailed progress information
try to build a RaspberryPI standard
$ l board total 52 drwxr-xr-x 5 tingo users 512 Apr 30 17:54 Alix drwxr-xr-x 4 tingo users 512 Apr 30 17:54 BeagleBone drwxr-xr-x 3 tingo users 512 Apr 30 17:54 BeagleBonePlusRaspberryPi drwxr-xr-x 4 tingo users 512 Apr 30 17:54 GenericI386 drwxr-xr-x 3 tingo users 512 Apr 30 17:54 NewBoardExample drwxr-xr-x 5 tingo users 512 Apr 30 17:54 PandaBoard -rw-r--r-- 1 tingo users 283 Apr 30 17:54 README drwxr-xr-x 7 tingo users 512 Apr 30 17:54 RaspberryPi drwxr-xr-x 5 tingo users 512 Apr 30 17:54 Soekris drwxr-xr-x 4 tingo users 512 Apr 30 17:54 VMWareGuest drwxr-xr-x 3 tingo users 512 Apr 30 17:54 VersatilePB drwxr-xr-x 5 tingo users 512 Apr 30 17:54 Wandboard drwxr-xr-x 4 tingo users 512 Apr 30 17:54 ZedBoard
try it:
$ sh crochet.sh -b RaspberryPi Starting at Wed Apr 30 18:00:11 CEST 2014 Board: RaspberryPi crochet.sh: svn: not found svn: E155007: '/usr/src' is not a working copy Source version is: r grep: /usr/src/sys/conf/newvers.sh: No such file or directory Building FreeBSD version: Image name is: /usr/home/tingo/work/crochet-freebsd/work/FreeBSD-armv6--RPI-B-r.img This does not look like a FreeBSD source tree. Did not find: /usr/src/COPYRIGHT You can obtain a suitable FreeBSD source tree with the folowing commands: $ svn co https://svn0.us-west.freebsd.org/base/head /usr/src Set $FREEBSD_SRC in the -c <config file> if you have the sources in a different directory. Run this script again after you have the sources installed.
correct, /usr/src is empty. Easily fixed. First install subversion from ports. Then checkout FreeBSD 10-stable:
root@kg-v7# svn checkout svn://svn0.eu.freebsd.org/base/stable/10 /usr/src [....] A /usr/src/bin/stty/stty.h A /usr/src/COPYRIGHT U /usr/src Checked out revision 265148.
verify:
root@kg-v7# egrep "^BRANCH|^REVISION" /usr/src/sys/conf/newvers.sh REVISION="10.0" BRANCH="STABLE"
ok.
2014-04-30: ada1p4 - getting crochet-freebsd:
$ pwd /usr/home/tingo/work $ git clone git://github.com/kientzle/crochet-freebsd.git Cloning into 'crochet-freebsd'... remote: Reusing existing pack: 3556, done. remote: Total 3556 (delta 0), reused 0 (delta 0) Receiving objects: 100% (3556/3556), 6.28 MiB | 525.00 KiB/s, done. Resolving deltas: 100% (1627/1627), done. Checking connectivity... done.
done.
2014-04-30: ada1p4 - installed git from ports. First attempt failed, so I did portsnap fetch; portsnap update
, and that helped.
2014-02-05: ada1p4 - I installed the Xfce port too.
2014-02-05: ada1p4 - Xorg - install some fonts:
root@kg-v7# portinstall -R cantarell-fonts croscorefonts liberation-fonts-ttf webfonts xorg-fonts-truetype xorg-fonts-type1
after adding Freetype moduile and Fontpaths to /etc/X11/xorg.conf I'm all done.
2014-02-05: ada1p4 - ok, with the new Xorg and the intel driver, X comes up in correct resolution, like so:
root@kg-v7# DISPLAY=:0 xrandr Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 8192 x 8192 VGA1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm x 298mm 1920x1080 60.0*+ 1680x1050 60.0 1600x900 60.0 1280x1024 75.0 60.0 1280x800 59.8 1152x864 75.0 1280x720 60.0 1024x768 75.1 60.0 832x624 74.6 800x600 75.0 60.3 640x480 75.0 60.0 720x400 70.1 HDMI1 disconnected (normal left inverted right x axis y axis) DP1 disconnected (normal left inverted right x axis y axis) HDMI2 disconnected (normal left inverted right x axis y axis) HDMI3 disconnected (normal left inverted right x axis y axis) DP2 disconnected (normal left inverted right x axis y axis) DP3 disconnected (normal left inverted right x axis y axis)
When I exit X, the console is not restored (but that is expected for now). The newer ports are:
root@kg-v7# pv -l\> [Reading data from pkg(8) ... - 161 packages found - done] dri-9.1.7_3,2 > succeeds port (port has 7.6.1_3,2) libGL-9.1.7 > succeeds port (port has 7.6.1_4) libdrm-2.4.50 > succeeds port (port has 2.4.17_1) xf86-video-intel-2.21.15_1 > succeeds port (port has 2.7.1_6) xorg-server-1.12.4_4,1 > succeeds port (port has 1.7.7_11,1)
good.
2014-02-05: ada1p4 - I installed xorg-minimal and did X - configure. It still detects as vesa, with a 1280x1024 screen size. current xorg ports:
root@kg-v7# pv | grep ^x [Reading data from pkg(8) ... - 159 packages found - done] xauth-1.0.8 = up-to-date with port xcb-proto-1.9 = up-to-date with port xcb-util-0.3.9_1,1 = up-to-date with port xcb-util-renderutil-0.3.8 = up-to-date with port xclock-1.0.7_1 = up-to-date with port xcmiscproto-1.2.2 = up-to-date with port xdpyinfo-1.3.1 = up-to-date with port xev-1.2.1 = up-to-date with port xextproto-7.2.1 = up-to-date with port xf86-input-keyboard-1.8.0 = up-to-date with port xf86-input-mouse-1.9.0_1 = up-to-date with port xf86-video-intel-2.7.1_6 = up-to-date with port xf86-video-vesa-2.3.3_1 = up-to-date with port xf86bigfontproto-1.2.0 = up-to-date with port xf86dgaproto-2.1 = up-to-date with port xf86driproto-2.1.1 = up-to-date with port xf86miscproto-0.9.3 = up-to-date with port xf86vidmodeproto-2.3.1 = up-to-date with port xineramaproto-1.2.1 = up-to-date with port xinit-1.3.3,1 = up-to-date with port xkbcomp-1.2.4 = up-to-date with port xkeyboard-config-2.10.1 = up-to-date with port xmlcatmgr-2.2 = up-to-date with port xmlcharent-0.3_2 = up-to-date with port xorg-macros-1.18.0 = up-to-date with port xorg-minimal-7.5.2 = up-to-date with port xorg-server-1.7.7_11,1 = up-to-date with port xproto-7.0.25 = up-to-date with port xrandr-1.4.1 = up-to-date with port xset-1.2.3_1 = up-to-date with port xterm-301_1 = up-to-date with port xtrans-1.3.2 = up-to-date with port
Next up, I add
WITH_NEW_XORG=true WITH_KMS=true
to /etc/make.conf, then rebuild all xf86- ports and the xorg-server port:
root@kg-v7# portupgrade -f xf86-input-keyboard xf86-input-mouse xf86-video-intel xf86-video-vesa xf86bigfontproto xf86dgaproto xf86driproto xf86miscproto xf86vidmodeproto xorg-server
Ok, failed, I need to upgrade dri too:
root@kg-v7# portupgrade -f dri
which failed, because it needs an updated libdrm, so do that:
root@kg-v7# portupgrade -f libdrm
which also fails. Sigh. Perhaps this must be done first:
root@kg-v7# portupgrade -f dri2proto glproto
Nope. It is all in /usr/ports/UPDATING. remove libGL and dri first, then install them again. After that all ports compile and install. Nice.
2014-01-29: ada1p4 - add a ports tree with portsnap fetch; portsnap extract
. Next I installed portupgrade from ports, which installed 15 other ports as
dependencies:
root@kg-v7# portversion -v [Reading data from pkg(8) ... - 16 packages found - done] autoconf-2.69 = up-to-date with port autoconf-wrapper-20131203 = up-to-date with port db41-4.1.25_4 = up-to-date with port dialog4ports-0.1.5_2 = up-to-date with port gettext-0.18.3.1 = up-to-date with port gmake-3.82_1 = up-to-date with port help2man-1.43.3_1 = up-to-date with port libffi-3.0.13_1 = up-to-date with port libyaml-0.1.4_2 = up-to-date with port m4-1.4.17,1 = up-to-date with port p5-Locale-gettext-1.05_3 = up-to-date with port perl5-5.16.3_6 = up-to-date with port pkg-1.2.5 = up-to-date with port portupgrade-2.4.12,2 = up-to-date with port ruby-1.9.3.484_1,1 = up-to-date with port ruby19-bdb-0.6.6_3 = up-to-date with port
all for now.
2014-01-29: ada1p4 - finally, FreeBSD 10.0-release installed. dmesg output: normal, verbose.
root@kg-v7# uname -a FreeBSD kg-v7.kg4.no 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014 root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
disk layout:
root@kg-v7# swapinfo -h;df -h Device 1K-blocks Used Avail Capacity /dev/ada1p3 4194304 0B 4.0G 0% Filesystem Size Used Avail Capacity Mounted on /dev/ada1p4 29G 835M 26G 3% / devfs 1.0K 1.0K 0B 100% /dev
pciconf -lv output:
root@kg-v7# pciconf -lv hostb0@pci0:0:0:0: class=0x060000 card=0x83831043 chip=0x00408086 rev=0x12 hdr=0x00 vendor = 'Intel Corporation' device = 'Core Processor DRAM Controller' class = bridge subclass = HOST-PCI vgapci0@pci0:0:2:0: class=0x030000 card=0x83831043 chip=0x00428086 rev=0x12 hdr=0x00 vendor = 'Intel Corporation' device = 'Core Processor Integrated Graphics Controller' class = display subclass = VGA none0@pci0:0:22:0: class=0x078000 card=0x83831043 chip=0x3b648086 rev=0x06 hdr=0x00 vendor = 'Intel Corporation' device = '5 Series/3400 Series Chipset HECI Controller' class = simple comms ehci0@pci0:0:26:0: class=0x0c0320 card=0x83831043 chip=0x3b3c8086 rev=0x06 hdr=0x00 vendor = 'Intel Corporation' device = '5 Series/3400 Series Chipset USB2 Enhanced Host Controller' class = serial bus subclass = USB hdac0@pci0:0:27:0: class=0x040300 card=0x837b1043 chip=0x3b568086 rev=0x06 hdr=0x00 vendor = 'Intel Corporation' device = '5 Series/3400 Series Chipset High Definition Audio' class = multimedia subclass = HDA pcib1@pci0:0:28:0: class=0x060400 card=0x83831043 chip=0x3b428086 rev=0x06 hdr=0x01 vendor = 'Intel Corporation' device = '5 Series/3400 Series Chipset PCI Express Root Port 1' class = bridge subclass = PCI-PCI pcib2@pci0:0:28:2: class=0x060400 card=0x83831043 chip=0x3b468086 rev=0x06 hdr=0x01 vendor = 'Intel Corporation' device = '5 Series/3400 Series Chipset PCI Express Root Port 3' class = bridge subclass = PCI-PCI ehci1@pci0:0:29:0: class=0x0c0320 card=0x83831043 chip=0x3b348086 rev=0x06 hdr=0x00 vendor = 'Intel Corporation' device = '5 Series/3400 Series Chipset USB2 Enhanced Host Controller' class = serial bus subclass = USB pcib3@pci0:0:30:0: class=0x060401 card=0x83831043 chip=0x244e8086 rev=0xa6 hdr=0x01 vendor = 'Intel Corporation' device = '82801 PCI Bridge' class = bridge subclass = PCI-PCI isab0@pci0:0:31:0: class=0x060100 card=0x83831043 chip=0x3b068086 rev=0x06 hdr=0x00 vendor = 'Intel Corporation' device = '5 Series Chipset LPC Interface Controller' class = bridge subclass = PCI-ISA ahci0@pci0:0:31:2: class=0x010601 card=0x83831043 chip=0x3b228086 rev=0x06 hdr=0x00 vendor = 'Intel Corporation' device = '5 Series/3400 Series Chipset 6 port SATA AHCI Controller' class = mass storage subclass = SATA none1@pci0:0:31:3: class=0x0c0500 card=0x83831043 chip=0x3b308086 rev=0x06 hdr=0x00 vendor = 'Intel Corporation' device = '5 Series/3400 Series Chipset SMBus Controller' class = serial bus subclass = SMBus re0@pci0:2:0:0: class=0x020000 card=0x83a31043 chip=0x816810ec rev=0x03 hdr=0x00 vendor = 'Realtek Semiconductor Co., Ltd.' device = 'RTL8111/8168B PCI Express Gigabit Ethernet controller' class = network subclass = ethernet none2@pci0:4:2:0: class=0x048000 card=0x000a13c2 chip=0x71461131 rev=0x01 hdr=0x00 vendor = 'Philips Semiconductors' device = 'SAA7146' class = multimedia
all for now.
2014-01-29: ada1p4 - after the boot I first fixed up the ssh keys so I could log into the machine via the network. Then it is just a matter of fixing all the other small things: added swap partition to /etc/fstab;
root@kg-v7:~ # more /etc/fstab # Device Mountpoint FStype Options Dump Pass# /dev/ada1p4 / ufs rw 1 1 /dev/ada1p3 none swap sw 0 0
activate:
root@kg-v7:~ # swapon -a swapon: adding /dev/ada1p3 as swap device
change shell for root:
root@kg-v7:~ # chsh -s /bin/sh chsh: user information updated
Fixed /etc/motd, /etc/ntp.conf, /etc/profile, Fix the group. The new install gives the user a primary group with the same name as the username, like this:
root@kg-v7# pw usershow tingo tingo:*:1001:1001::0:0:Torfinn Ingolfsen:/home/tingo:/bin/sh root@kg-v7# pw groupshow tingo tingo:*:1001:
but I want the primary group to have another name. Fix it:
root@kg-v7# pw groupmod -n tingo -l users pw: group disappeared during update
check:
root@kg-v7# pw groupshow tingo pw: unknown group 'tingo' root@kg-v7# pw groupshow users users:*:1001:
finally, id:
root@kg-v7# id tingo uid=1001(tingo) gid=1001(users) groups=1001(users),0(wheel),5(operator)
all done. set permanent boot on ada1p4:
root@kg-v7# gpart set -a bootme -i 4 ada1 bootme set on ada1p4
Good.
2014-01-29: ada1p4 - I installed FreeBSD 10.0-release from a memstick image. I opted not to install a boot partition, and partitioned the disk manually. After the install, the machine booted into 9.2 again, so I must fix that. gparts says this about the disk now:
root@kg-v7# gpart show -p ada1 => 34 250069613 ada1 GPT (119G) 34 128 ada1p1 freebsd-boot (64k) 162 62914560 ada1p2 freebsd-ufs (30G) 62914722 8388608 ada1p3 freebsd-swap (4.0G) 71303330 6 - free - (3.0k) 71303336 62914560 ada1p4 freebsd-ufs (30G) 134217896 115851751 - free - (55G)
So, fix things. Will a simple bootable attribute work? Yes, that worked. Nice.
root@kg-v7# gpart set -a bootonce -i 4 ada1 bootonce set on ada1p4
check:
root@kg-v7# gpart show -p ada1 => 34 250069613 ada1 GPT (119G) 34 128 ada1p1 freebsd-boot (64k) 162 62914560 ada1p2 freebsd-ufs (30G) 62914722 8388608 ada1p3 freebsd-swap (4.0G) 71303330 6 - free - (3.0k) 71303336 62914560 ada1p4 freebsd-ufs [bootonce,bootme] (30G) 134217896 115851751 - free - (55G)
Ok, try to boot now.
2014-01-26: ada1p2 - update to FreeBSD 9.2-stable via make world. dmesg output: nomal, verbose.
tingo@kg-v7$ uname -a FreeBSD kg-v7.kg4.no 9.2-STABLE FreeBSD 9.2-STABLE #1 r261187: Sun Jan 26 15:20:25 CET 2014 root@kg-v7.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64
disk space:
tingo@kg-v7$ df -h Filesystem Size Used Avail Capacity Mounted on /dev/ada1p2 29G 7.9G 18G 29% / devfs 1.0k 1.0k 0B 100% /dev
pciconf -lv output:
root@kg-v7# pciconf -lv hostb0@pci0:0:0:0: class=0x060000 card=0x83831043 chip=0x00408086 rev=0x12 hdr=0x00 vendor = 'Intel Corporation' device = 'Core Processor DRAM Controller' class = bridge subclass = HOST-PCI vgapci0@pci0:0:2:0: class=0x030000 card=0x83831043 chip=0x00428086 rev=0x12 hdr=0x00 vendor = 'Intel Corporation' device = 'Core Processor Integrated Graphics Controller' class = display subclass = VGA none0@pci0:0:22:0: class=0x078000 card=0x83831043 chip=0x3b648086 rev=0x06 hdr=0x00 vendor = 'Intel Corporation' device = '5 Series/3400 Series Chipset HECI Controller' class = simple comms ehci0@pci0:0:26:0: class=0x0c0320 card=0x83831043 chip=0x3b3c8086 rev=0x06 hdr=0x00 vendor = 'Intel Corporation' device = '5 Series/3400 Series Chipset USB2 Enhanced Host Controller' class = serial bus subclass = USB hdac0@pci0:0:27:0: class=0x040300 card=0x837b1043 chip=0x3b568086 rev=0x06 hdr=0x00 vendor = 'Intel Corporation' device = '5 Series/3400 Series Chipset High Definition Audio' class = multimedia subclass = HDA pcib1@pci0:0:28:0: class=0x060400 card=0x83831043 chip=0x3b428086 rev=0x06 hdr=0x01 vendor = 'Intel Corporation' device = '5 Series/3400 Series Chipset PCI Express Root Port 1' class = bridge subclass = PCI-PCI pcib2@pci0:0:28:2: class=0x060400 card=0x83831043 chip=0x3b468086 rev=0x06 hdr=0x01 vendor = 'Intel Corporation' device = '5 Series/3400 Series Chipset PCI Express Root Port 3' class = bridge subclass = PCI-PCI ehci1@pci0:0:29:0: class=0x0c0320 card=0x83831043 chip=0x3b348086 rev=0x06 hdr=0x00 vendor = 'Intel Corporation' device = '5 Series/3400 Series Chipset USB2 Enhanced Host Controller' class = serial bus subclass = USB pcib3@pci0:0:30:0: class=0x060401 card=0x83831043 chip=0x244e8086 rev=0xa6 hdr=0x01 vendor = 'Intel Corporation' device = '82801 PCI Bridge' class = bridge subclass = PCI-PCI isab0@pci0:0:31:0: class=0x060100 card=0x83831043 chip=0x3b068086 rev=0x06 hdr=0x00 vendor = 'Intel Corporation' device = '5 Series Chipset LPC Interface Controller' class = bridge subclass = PCI-ISA ahci0@pci0:0:31:2: class=0x010601 card=0x83831043 chip=0x3b228086 rev=0x06 hdr=0x00 vendor = 'Intel Corporation' device = '5 Series/3400 Series Chipset 6 port SATA AHCI Controller' class = mass storage subclass = SATA none1@pci0:0:31:3: class=0x0c0500 card=0x83831043 chip=0x3b308086 rev=0x06 hdr=0x00 vendor = 'Intel Corporation' device = '5 Series/3400 Series Chipset SMBus Controller' class = serial bus subclass = SMBus re0@pci0:2:0:0: class=0x020000 card=0x83a31043 chip=0x816810ec rev=0x03 hdr=0x00 vendor = 'Realtek Semiconductor Co., Ltd.' device = 'RTL8111/8168B PCI Express Gigabit Ethernet controller' class = network subclass = ethernet none2@pci0:4:2:0: class=0x048000 card=0x000a13c2 chip=0x71461131 rev=0x01 hdr=0x00 vendor = 'Philips Semiconductors' device = 'SAA7146' class = multimedia
that's it.
2014-01-26: ada1p2 - prepare to update source via svn. First remove everything in /usr/src:
root@kg-v7# cd /usr/src root@kg-v7# rm -rf *
Next, checkout the correct branch:
root@kg-v7# svn checkout svn://svn.FreeBSD.org/base/stable/9 /usr/src [...] A /usr/src/secure/lib/Makefile A /usr/src/secure/lib/libssh A /usr/src/secure/lib/libssh/Makefile A /usr/src/secure/lib/Makefile.inc U /usr/src Checked out revision 261187.
Now which version have I got?
root@kg-v7# egrep "^BRANCH|^REVISION" /usr/src/sys/conf/newvers.sh REVISION="9.2" BRANCH="STABLE"
Good.
2014-01-26: ada1p2 - I updated the ports tree via portsnap fetch; portsnap update
. Then I installed subversion 1.8.5 from ports, to update source. This rebuilt
quite a few ports in the process.
2014-01-26: ada1p2 - I booted from this partition. All the memory (16 GB) was detected. The machine still runs FreeBSD 9.1-stable:
root@kg-v7# uname -a FreeBSD kg-v7.kg4.no 9.1-STABLE FreeBSD 9.1-STABLE #0: Sun Jan 6 20:09:55 CET 2013 root@kg-v7.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64
disk space:
root@kg-v7# df -h Filesystem Size Used Avail Capacity Mounted on /dev/ada1p2 29G 6.7G 20G 25% / devfs 1.0k 1.0k 0B 100% /dev
Hmm, space enough for an upgrade I guess.