FreeBSD bugmaster | 7 Feb 12:06 2011
Picon

freebsd-embedded@...

Note: to view an individual PR, use:
  http://www.freebsd.org/cgi/query-pr.cgi?pr=(number).

The following is a listing of current problems submitted by FreeBSD users.
These represent problem reports covering all versions including
experimental development code and obsolete releases.

S Tracker      Resp.      Description
--------------------------------------------------------------------------------
p misc/151696  embedded   [nanobsd] [patch] nanobsd.sh doesn't run "make_conf_bu
o misc/151695  embedded   [nanobsd] [patch] Enhance tools/nanobsd/fill_pkg.sh
o misc/136889  embedded   [nanobsd] [patch] nanobsd error reporting and other re
o misc/52256   embedded   [picobsd] picobsd build script does not read in user/s
o kern/42728   embedded   [picobsd] many problems in src/usr.sbin/ppp/*  after c

5 problems total.

Adrian Chadd | 13 Feb 20:02 2011
Picon

patch to sys/dev/flash/ to allow smaller read IO sizes

I've been running a few of my ubiquiti boards out of flash recently
and the default sector size just makes it impossible.

This patch introduces a couple of important changes:

* the GEOM sector size is changed to 512 bytes;
* non-aligned size/offset for read/write is now an IO error, rather
than a KASSERT();

This means that read IO will work fine with smaller IO sizes and the
wrong-sized IO will simply return EIO rather than panicing the kernel.
Writing should still work for IO size+offset as a multiple of the
sector size.

Thanks,

Adrian

====

[root <at> pcbsd-1294 /data/1/adrian/head/src]# cat /tmp/flash_read_size.diff
Index: sys/dev/flash/mx25l.c
===================================================================
--- sys/dev/flash/mx25l.c       (revision 218440)
+++ sys/dev/flash/mx25l.c       (working copy)
 <at>  <at>  -49,6 +49,13  <at>  <at> 
 #define        FL_ERASE_4K             0x01
 #define        FL_ERASE_32K            0x02

+/*
(Continue reading)

FreeBSD bugmaster | 14 Feb 12:07 2011
Picon

freebsd-embedded@...

Note: to view an individual PR, use:
  http://www.freebsd.org/cgi/query-pr.cgi?pr=(number).

The following is a listing of current problems submitted by FreeBSD users.
These represent problem reports covering all versions including
experimental development code and obsolete releases.

S Tracker      Resp.      Description
--------------------------------------------------------------------------------
p misc/151696  embedded   [nanobsd] [patch] nanobsd.sh doesn't run "make_conf_bu
o misc/151695  embedded   [nanobsd] [patch] Enhance tools/nanobsd/fill_pkg.sh
o misc/136889  embedded   [nanobsd] [patch] nanobsd error reporting and other re
o misc/52256   embedded   [picobsd] picobsd build script does not read in user/s
o kern/42728   embedded   [picobsd] many problems in src/usr.sbin/ppp/*  after c

5 problems total.

Warren Block | 20 Feb 02:06 2011

CFT: Arduino-0022 port

A new version of the Arduino port is available for testing.  The port 
files are available on github.com:

https://github.com/wblock/Arduino-port-for-FreeBSD

Click on Downloads to get a tar.gz.  Or if you have git installed,
   % git clone git://github.com/wblock/Arduino-port-for-FreeBSD.git

Thanks!
FreeBSD bugmaster | 21 Feb 12:06 2011
Picon

freebsd-embedded@...

Note: to view an individual PR, use:
  http://www.freebsd.org/cgi/query-pr.cgi?pr=(number).

The following is a listing of current problems submitted by FreeBSD users.
These represent problem reports covering all versions including
experimental development code and obsolete releases.

S Tracker      Resp.      Description
--------------------------------------------------------------------------------
p misc/151696  embedded   [nanobsd] [patch] nanobsd.sh doesn't run "make_conf_bu
o misc/151695  embedded   [nanobsd] [patch] Enhance tools/nanobsd/fill_pkg.sh
o misc/136889  embedded   [nanobsd] [patch] nanobsd error reporting and other re
o misc/52256   embedded   [picobsd] picobsd build script does not read in user/s
o kern/42728   embedded   [picobsd] many problems in src/usr.sbin/ppp/*  after c

5 problems total.

Luiz Otavio O Souza | 26 Feb 13:51 2011
Picon

Expanding GPIO outputs with a shift-register

Hello folks,

I've been playing around with GPIO on a variety of devices (RS, RSPRO, TP-Link routers, ubiquiti devices,
etc.) and some of them have a limited number of available gpio pins.

I've put together some information about using simple and cheap CMOS shift-and-store bus register (4094)
to expand the GPIO outputs: http://loos.no-ip.org/routerstation/gpio-sr.html

You only need 3 available gpio pins (yes, it is not _that_ cheap ;)) and you can make up to 32 outputs (8 outputs
per chip, up to 4 cascaded chips).

The same could be done for inputs, using a similar 4021 (but then you probably want something better, like a
PCF8574 i2c gpio expander, which uses only two gpio pins... but we're talking about a cheap and
straightforward solution this time...).

CAUTION: I've been using this schematic also as a level shifter (3.3v -> 5v), but the GPIO pins for RS/RSPRO
are 3.3v _ONLY_, you have to avoid any 5v outputs to be connected on GPIO pins !

If you want to be on the safe side, please use the NXP bi-directional level shifter: http://www.nxp.com/news/backgrounders/bg_esc9727/index.html

Once you have everything in place, you should see something like this on your dmesg:

gpio0: <Atheros AR71XX GPIO driver> on apb0
gpio0: [GIANT-LOCKED]
gpioc0: <GPIO controller> on gpio0
gpiobus0: <GPIO bus> on gpio0
gpioled0: <GPIO led> at pin(s) 2 on gpiobus0
gpioshiftreg0: <GPIO Shift-Register expander> at pin(s) 5-7 on gpiobus0
gpioc1: <GPIO controller> on gpioshiftreg0
gpiobus1: <GPIO bus> on gpioshiftreg0
(Continue reading)

FreeBSD bugmaster | 28 Feb 12:06 2011
Picon

freebsd-embedded@...

Note: to view an individual PR, use:
  http://www.freebsd.org/cgi/query-pr.cgi?pr=(number).

The following is a listing of current problems submitted by FreeBSD users.
These represent problem reports covering all versions including
experimental development code and obsolete releases.

S Tracker      Resp.      Description
--------------------------------------------------------------------------------
p misc/151696  embedded   [nanobsd] [patch] nanobsd.sh doesn't run "make_conf_bu
o misc/151695  embedded   [nanobsd] [patch] Enhance tools/nanobsd/fill_pkg.sh
o misc/136889  embedded   [nanobsd] [patch] nanobsd error reporting and other re
o misc/52256   embedded   [picobsd] picobsd build script does not read in user/s
o kern/42728   embedded   [picobsd] many problems in src/usr.sbin/ppp/*  after c

5 problems total.


Gmane