Solved Downloading Source on RPi3

I was having troubles using svnlite to download /usr/src for the RasperryPi3.
svnlite co https://svn.freebsd.org/base/head /usr/src
svn: E120106: ra_serf: The server sent a truncated HTTP response body.

Seems this is a recurring problem on Pi from the threads I found.
I ended up having to use fetch instead.
fetch ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/arm64/12.0-CURRENT/src.txz
tar -C / -xzvf src.txz

I started to install git instead but it is 150MB and that seems wasteful.

What I worry about is ftp is not a secure connection.

I am sorry to be discussing -CURRENT here as I know the rules.
On RPi3 we have no other alternatives.
 
Last edited:
I am building off the RaspBSD image that I installed to a 32GB microSD card.
Seeing how the image is 1.8GB you need to grow the root slice before you can use growfs.
Code:
root@rpi3:~ # gpart show
=>      63  65535937  mmcsd0  MBR  (31G)
        63    102375       1  !12  [active]  (50M)
    102438       986          - free -  (493K)
    103424   3704832       2  freebsd  (1.8G)
   3808256  61727744          - free -  (29G)

=>      0  3704832  mmcsd0s2  BSD  (1.8G)
        0  3704704         1  freebsd-ufs  (1.8G)
  3704704      128            - free -  (64K)

root@rpi3:~ # gpart resize -i 2 mmcsd0
mmcsd0s2 resized
root@rpi3:~ # gpart show
=>      63  65535937  mmcsd0  MBR  (31G)
        63    102375       1  !12  [active]  (50M)
    102438       986          - free -  (493K)
    103424  65432576       2  freebsd  (31G)

=>       0  65432576  mmcsd0s2  BSD  (31G)
         0   3704704         1  freebsd-ufs  (1.8G)
   3704704  61727872            - free -  (29G)

root@rpi3:~ # gpart resize -i 1 mmcsd0s2
mmcsd0s2a resized
root@rpi3:~ # gpart show
=>      63  65535937  mmcsd0  MBR  (31G)
        63    102375       1  !12  [active]  (50M)
    102438       986          - free -  (493K)
    103424  65432576       2  freebsd  (31G)

=>       0  65432576  mmcsd0s2  BSD  (31G)
         0  65432576         1  freebsd-ufs  (31G)

root@rpi3:~ # growfs /
Device is mounted read-write; resizing will result in temporary write suspension for /.
It's strongly recommended to make a backup before growing the file system.
OK to grow filesystem on /dev/mmcsd0s2a, mounted on /, from 1.8GB to 31GB? [yes/no] yes
super-block backups (for fsck_ffs -b #) at:
 3705024, 4631232, 5557440, 6483648, 7409856, 8336064, 9262272, 10188480,
 11114688, 12040896, 12967104, 13893312, 14819520, 15745728, 16671936,
 17598144, 18524352, 19450560, 20376768, 21302976, 22229184, 23155392,
 24081600, 25007808, 25934016, 26860224, 27786432, 28712640, 29638848,
 30565056, 31491264, 32417472, 33343680, 34269888, 35196096, 36122304,
 37048512, 37974720, 38900928, 39827136, 40753344, 41679552, 42605760,
 43531968, 44458176, 45384384, 46310592, 47236800, 48163008, 49089216,
 50015424, 50941632, 51867840, 52794048, 53720256, 54646464, 55572672,
 56498880, 57425088, 58351296, 59277504, 60203712, 61129920, 62056128,
 62982336, 63908544, 64834752
root@rpi3:~ #
 
I was having troubles using svnlite to download /usr/src for the RasperryPi3.
svnlite co https://svn.freebsd.org/base/head /usr/src
svn: E120106: ra_serf: The server sent a truncated HTTP response body.

Seems this is a recurring problem on Pi from the threads I found.
I ended up having to use fetch instead.
fetch ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/arm64/12.0-CURRENT/src.txz
tar -C / -xzvf src.txz

I started to install git instead but it is 150MB and that seems wasteful.

What I worry about is ftp is not a secure connection.

I am sorry to be discussing -CURRENT here as I know the rules.
On RPi3 we have no other alternatives.

Hi Phishfry,

Were you downloading to the Pi? That could explain the timeouts maybe. I have often gotten timeouts while using svn to get the source. There is a way to restart the svn fetch without starting over, so you can continue without re-doing the whole thing. I forget the exact syntax at the moment.
 
Looks like we have a working RPi3 image on the download page for -CURRENT
RPI3 builds have been broke since a August31 commit.

So this image is basically the same as RaspBSD image but newer.

I copied over /usr/src/ and I am building kernel now.
Added ow,owc,ow_temp and ds3231 devices to /sys/arm64/conf/GENERIC kernconf.
I also removed the debug features too.

Stopped on my first run because of a simple problem:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220125

Wonder how many hours it will take to builkernel on rpi3. I used make -j4 .
 
I failed too many times compiling from source on the RPi3 so I decided to change course and hand patch my Crochet files.
Crochet is broke for recent -CURRENT source but these changes make it work.
https://github.com/freebsd/crochet/pull/215

So Crochet is building RPi3 images nicely once again.
I wish my DTS mods for RTC and OneWire were going better.

Dealing with the /usr/src/sys/gnu/dts/arm DTS files has been a real pain.
I have tried to find the correct parent device but coming up with a blank.
Might have to try overlays again. Getting the hang of using the device tree compiler and ofwdump.

My problem with the official aarch64 RPi3 image is they have all the debug features turned on.
I tried only compiling the arm64/GENERIC-NODEBUG kernel with same source revision but it kept failing with make kernel-keychain.
I couldn't get buildworld to complete either. Regardless it was a learning experience.

I should note we have an official aarch64 pkg repository now as well.
 
Back
Top