Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: 2017-01-28-netbsd-raspi-earmv6hf.img (Re: Raspberry Pi update please.)




I just wanted to say thanks for putting that together, Ebihara-san. I didn't know many of those resources existed!

I just started tinkering with RPI's recently, and this gives me quite a menu of items to play with.

Do you have a wiki page or anything on the web I can bookmark with the same kind of information?

Thanks,
  Swift

On Wed, 25 Jan 2017, Jun Ebihara wrote:

I've updated 2017-01-28-netbsd-raspi-earmv6hf.img.gz for RPI.

http://cdn.netbsd.org/pub/NetBSD/misc/jun/raspberry-pi/2017-01-28-earmv6hf/2017-01-28-netbsd-raspi-earmv6hf.img.gz
http://cdn.netbsd.org/pub/NetBSD/misc/jun/raspberry-pi/2017-01-28-earmv6hf/MD5

Overview:
 http://wiki.NetBSD.org/ports/evbarm/raspberry_pi/

dmesg:
 https://github.com/ebijun/NetBSD/blob/master/dmesg/earmv6hf/RPI
 https://github.com/ebijun/NetBSD/blob/master/dmesg/earmv6hf/RPI0
 https://github.com/ebijun/NetBSD/blob/master/dmesg/earmv6hf/RPI2
 https://github.com/ebijun/NetBSD/blob/master/dmesg/earmv6hf/RPI2-1.2
 https://github.com/ebijun/NetBSD/blob/master/dmesg/earmv6hf/RPI3

Kernel update
Include re-compiled kernel to RPI work well.
1. RPI3: still need aaa->aaa_addr == BCM2835_BSC0_BASE patch.
- http://mail-index.netbsd.org/port-arm/2016/06/16/msg003830.html
- http://mail-index.netbsd.org/port-arm/2016/12/06/msg003995.html

2. update to dwc_gmac.c fix :  Mon Jan 23 08:36:23 UTC 2017
- http://mail-index.netbsd.org/source-changes/2017/01/23/msg081272.html

http://cdn.netbsd.org/pub/NetBSD/misc/jun/raspberry-pi/2017-01-28-earmv6hf/RPI/
http://cdn.netbsd.org/pub/NetBSD/misc/jun/raspberry-pi/2017-01-28-earmv6hf/RPI3/

If you use un-patched-original kernel.
mv /boot/kernel7.img.orignal /boot/kernel7.img
mv /boot/kernel.img.orignal /boot/kernel.img

Pre-installed packages:
https://github.com/ebijun/NetBSD/blob/master/RPI/RPIimage/pkgsrc/pkginfo
updates:
https://github.com/ebijun/NetBSD/commit/a023a59b9ba2ed72e6e5c2a3541f5897a4e6f29e#diff-4a755d73dbba5da21bbf783139f086dc

Update:
- NetBSD-current 7.99.59 evbarm-earmv6hf 201701190410Z rpi.img from nyftp.
- firmware and vchiq updates:
 http://mail-index.netbsd.org/port-arm/2017/01/12/msg004077.html
 http://mail-index.netbsd.org/source-changes/2017/01/12/msg080883.html
 http://mail-index.netbsd.org/source-changes/2017/01/12/msg080887.html
- pkgsrc/misc/raspberrypi-userland:
 http://mail-index.netbsd.org/pkgsrc-changes/2017/01/12/msg151413.html
- hardware RNG driver
 http://mail-index.netbsd.org/port-arm/2016/12/16/msg004011.html
 http://mail-index.netbsd.org/source-changes/2016/12/17/msg079956.html
- bind-9.10.4-P5
 http://mail-index.netbsd.org/source-changes/2017/01/12/msg080889.html
- ruby22-mikutter-3.5.1
 http://mail-index.netbsd.org/pkgsrc-changes/2017/01/08/msg151276.html

Problem:
- sdhc(4) can't recognize some kind of microSD card
 http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=51732
- dillo-3.0.5nb2 boot fails on earmv6hf,backout dillo-3.0.5nb1

security.pax.mprotect.enabled
 http://netbsd.org/gallery/presentations/msaitoh/2016_BSDCan/BSDCan2016-NetBSD.pdf
 man security
 man paxctl
 sysctl -a |grep pax
 If application failed, such as omxplayer.
 try to test
 sysctl -w security.pax.mprotect.enabled=0

Automatic resize partition: see /etc/rc.conf and /etc/fstab
 1. copy image to SD/MicroSD
 2. Boot
 3. Calculate and resize ld0 partition and automatic reboot
 4. after the reboot,root partition fit for your card.
   http://movapic.com/pic/20150416115108552fa22c4f225
   In this image, ld0a re-created with newfs -b 4096.

pkgsrc:
 # cd /usr
 # ftp http://cdn.netbsd.org/pub/pkgsrc/current/pkgsrc.tar.gz
 # ls /usr/pkgsrc                ... check if exists.
 # tar tzvf pkgsrc.tar.gz |head  ... check the archive
 # tar xzvf pkgsrc.tar.gz        ... extract
 # ls /usr/pkgsrc                ... check what extracted
 # pkg_chk -g                    ... List to/usr/pkgsrc/pkgchk.conf
 # (cd /usr/pkgsrc;cvs update -PAd) ... update
 # pkg_chk -un                   ... Update (listup)
 # pkg_chk -u                    ... Update

 I use /usr/pkgsrc with USB SSD disk.

Pre-compiled packages:
- Pre-compiled packages path setting: man 5 pkg_install.conf

See /etc/pkg_install.conf

PKG_PATH=http://cdn.netbsd.org/pub/NetBSD/misc/jun/raspberry-pi/earmv6hf/2017-01-28/

- If you use Official Package for NetBSD7.0:

set /etc/pkg_install.conf:
PKG_PATH=http://cdn.netbsd.org/pub/pkgsrc/packages/NetBSD/earmv6hf/7.0_HEAD/

- I keep libfreetype.so.17.4.11 for some 7.0 related binaries.
http://cdn.netbsd.org/pub/NetBSD/misc/jun/raspberry-pi/2017-01-28-earmv6hf/libfreetype.so.17.4.11

- If you update pkgsrc by yourself,comment out /etc/pkg_install.conf and check
/etc/mk.conf.

Install application: man 1 pkg_add
 # pkg_add some_application_name

- omxplayer
 # pkg_add omxplayer
 # pkg_add youtube-dl
 # youtube-dl https://www.youtube.com/watch?v=wG8ZCC8IwvM
 # omxplayer *.mkv

- Xfce4
 # pkg_add xfce4
 # startxfce4
  or edit /root/.xinitrc and comment out startxfce4

- seamonkey
 # pkg_add seamonkey
 # pkg_add seamonkey-l10n

- nodejs
 # pkg_add nodejs

 omxfinder (https://www.npmjs.com/package/omxfinder)
 # npm install -g omxfinder
 cd video archive directory,
 # omxfinder
 can start video viewing via file finder.

 SHARP MZ700 emulator
 # npm install -g mz700-js
 # cd /usr/pkg/lib/node_modules/mz700-js
 # npm start
 # mz700-js@0.0.0 start  /usr/pkg/lib/node_modules/mz700-js
 # access http://localhost:3000/MZ-700/client.html

- openjdk
 # pkg_add openjdk8

- gimp
 # pkg_add gimp

- mpv
 # pkg_add mpv

- emacs
 # pkg_add emacs
 # pkg_add anthy-elisp # for inputmethod/anthy

- evince
 # pkg_add evince

- typical apache+php environment
 # pkg_add ap22-php56

- gedit
 # pkg_add gedit

- sphinx
 # pkg_add py27-sphinx

- mcomix .. Book scanning data viewer
 # pkg_add py27-mcomix
 to avoid ImportError: cannot import name _getexif,
 use py27-Pillow package instead of py27-imaging.


Testing::

- dillo
 # pkg_add dillo
 XXX: dillo-3.0.5nb2 start failed.

- firefox
 # pkg_add firefox
 # pkg_add firefox-l10n
 XXX: firefox: libmozavcodec.so: No such file or directory
 XXX: firefox45: Segfault

- midori
 # pkg_add midori
 XXX: start failed

- scribus
 # pkg_add scribus-1.4.3
 XXX: libpodofo.so.0.9.3 not found:need re-compile

- inkscape
 XXX: libboost_system.so.1.60 not found:need re-compile

- wordpress
 # pkg_add wordpress
 XXX: need php56-gd

- (shotwell)
 # pkg_add shotwell

CrossCompiling:
 http://www.slideshare.net/junebihara18/netbsdworkshop

NetBSD GPIO DOC by Marina Brown
 https://github.com/catskillmarina/netbsd-gpio-doc/blob/master/README.md

I2C - "Raspberry Pi I2C implementation still broken?"
 http://mail-index.netbsd.org/port-arm/2015/02/10/msg002853.html
 "I can confirm the IOCTL is fixed, and can now successfully program I2C
 EEPROMs using NetBSD on the Pi."
 NetBSD RPi i2c sample code:
  https://gist.github.com/cr1901/76af0b3db9e9001a8d5b
  http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=48855
  http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=48932

musica - DLNA/UPnP music server: (Thanx @cvsync)
MAEKAWA Masahide make a DLNA/UPnP music server called "musica".

 1. Check http://www.m-systems.co.jp/musica/index_en.html .
 2. Download musica-0.3.22-netbsd6-evbarm-earmv6hf.tgz for evaluation.
 3. pkg_add musica-0.3.22-netbsd6-evbarm-earmv6hf.tgz
 4. musica -d [AAC,MP3,WMA,FLAC,DSDIFF,DSF,AIFF,WAV,Apple Lossless dir]
 5. Find from DLNA/UPnP AV equipment.
 6. With a little luck,you'll find musica and enjoy music via musica.
 7. If you feel slow,Try {NetBSD/amd64 i386,OSX,Ubuntu} Version or improve NetBSD.

XM6i - SHARP X68030 Emulator for NetBSD/x68k (Thanx isaki@)
 http://xm6i.org/download.html
 XM6i-0.54-netbsd7.0-earmv6hf-2015Q2.tar.gz
 pkg_add wxGTK30-3.0.2nb6
 XXX: use wxGTK30-3.0.2nb6 for XM6i-0.54

 https://twitter.com/isaki68k/status/625138538271502337

Todo:
- set2pkg: update via pkgsrc.
- HDMI Display failure on X
 - On-Lap 2501M (reported from @matoken)
   https://twitter.com/matoken/status/702656906251210753
- pkg_in/pkg_summary
- Summarize /usr/tests atf result on earm/earmhf/earmv6hf.
- https://github.com/isaki68k/sayaka: PHP/vala based twitter client.
 https://twitter.com/tsutsuii/status/700963911630065664
- DTRACE http://wiki.netbsd.org/tutorials/how_to_enable_and_run_dtrace/
- yaft (yet another framebuffer terminal):
 https://github.com/uobikiemukot/yaft
- RPI.rst in english.
- /dev/mem: http://mail-index.netbsd.org/port-arm/2015/03/12/msg002934.html
 "can't open /dev/mem" -> re-compile kernel with INSECURE.
- Sound output to the jack: port-arm/2015/03/12/msg002938.html
  $ mixerctl -v outputs.select
  outputs.select=auto  [ auto headphones hdmi ]

pkgsrc Todo:
- lang/go : go-netbsd-arm put oarm binary
 Golang for NetBSD/arm problem summarized by @oshimyja
 http://www.yagoto-urayama.jp/~oshimaya/netbsd/netbsd_goarm.html
 http://mail-index.netbsd.org/port-arm/2015/08/02/msg003361.html
 https://twitter.com/oshimyja/status/604871730125864960
 https://github.com/golang/go/commit/30d60936d97423af0403f2d5395c604ac0ff3757
 runtime: fetch physical page size from the OS
  https://github.com/golang/go/commit/276a52de55fb48c4e56a778f1f7cac9292d8fad7
- gnuradio: g77 failed. need RTL2832U master.
- kodi: boot failed on my environment.
- www/otter-browser: compiling.
- omxplayer: sometimes core dumps.
 -> add "gpu=256" to /boot/cmdline.txt, advice from Brandon Wickelhaus.
- omxplayer: need /proc/cpuinfo to buy MPEG-2 license key.


=====================

For Open Source Conference Osaka 2017 demonstration use,
I've updated raspberry-pi image.

https://www.ospn.jp/osc2017-osaka/
https://www.facebook.com/events/1789923797907417/
https://www.facebook.com/NetBSD.jp

- NetBSD 7.99.59 earmv6hf rpi.img.gz base
- Connect HDMI,USB Keyboard,USB Mouse,Ether(dhcpd and ntpd will work)
- login root (no passwd)
- startx ,and icewm running.
- running mikutter.
 twitter client (net/mikutter) on 40inch home TV.
 http://movapic.com/ebijun/pic/5168479

 # startx
 # dillo &
 # mikutter &
 or
 # LANG=en_US.UTF-8 mikutter &
      English menu support. LANG environment setting on .xinitrc .

 ==== one or two or threee moment =====

Appear mikutter window. and mikutter-chan tell you,

"Well done on the installation!" [Next]
"Hi! This is mikutter-chan speaking to you,join the twitter with me!" [Next]
1. "Click the link https:......" click the URL,
   copy URL into dillo.
2. "login with the Twitter account you wish to use."
3. "Go along until you see a 7-digit code and type it in at the top."
 -> get pin number.
 -> paste pin number to mikutter
4. "Congratulations! You have attained achievement register_account!"

 Share your twitter timeline with your family!

Features:
 - fit size for 2GB SD Card
 - with X11
 - increase more inodes on /dev/ld0a
 - Recent current RPI kernel
 - USB/video support: as NetBSD-current
 - pre-build packages
   http://cdn.netbsd.org/pub/NetBSD/misc/jun/raspberry-pi/earmv6hf/2017-01-28/

Installed Packages:
kterm
bash
tcsh
vlgothic-ttf
icewm
xli
mikutter
medit
uim
fossil
raspberrypi-userland
sudo
git-base
zsh
dillo
mlterm
pkg_chk
lintpkgsrc
mozilla-rootcerts


To control HDMI output,add/delete "console=fb" on cmdline.txt.
If delete console=fb definition,you can get serial console instead.
rpi$ more /boot/cmdline.txt
root=ld0a console=fb

Keyboard layout checkpoint:
/etc/wscons.conf
#encoding sv
#encoding us.swapctrlcaps
encoding jp

/root/.xinitrc
setxkbmap -model jp106 jp

/root/.mikutter/plugin/ : http://yuzuki.hachune.net/wiki/Plugin
- display_requirements.rb [Pre installed]

Build sample script:
https://github.com/ebijun/NetBSD/tree/master/RPI/RPIimage/Image

Guide:
https://github.com/ebijun/NetBSD/blob/master/Guide/RPI.rst

BUGS:
1. port-arm/48855
 i2cscan on RPi NetBSD build finds device for all addresses
2. i2c problem reported from "its sead".
 /usr/sbin/i2scan on iic0 or iic1 often crashes the device (also with the -r
 (use writes) option)
3. cap_mkdb failed, on update terminfo db.
 https://twitter.com/uobikiemukot/status/487977340949893121

One more time: (we're gonna celebrate
- Everything you always wanted to know about six but were afraid to ask.

1. login root
2. mlterm-fb
3. ftp http://mlterm.sf.net/vimperator.six
4. cat vimperator.six
5. exit
6. mlterm-fb --rotate=left
7. cat vimperator.six
   and @Chris_J_Baird only knows how to get to 1987.
8. ftp http://kildall.apana.org.au/~cjb/mandel5.c
9. cc mandel5.c
10. ./a.out 1024 728 -2 -1.5 4.0 |tee f
11. cat f
12. pkg_add sayaka
13. sayaka
   copy URL into dillo,and get twitter PIN.
   Share your twitter timeline with your family with mlterm-fb!

--
Jun Ebihara



Home | Main Index | Thread Index | Old Index