Author Topic: New BBB Image - Debian Stretch (9.1)  (Read 683 times)

Online dkulp

  • Sr. Member
  • ****
  • Join Date: Sep 2013
  • Location: Framingham, MA
  • Posts: 348
  • Kudos: 8
New BBB Image - Debian Stretch (9.1)
« on: September 05, 2017, 06:05:23 PM »



I've just uploaded a new image to http://dankulp.com/bbb ( bbb-fpp-20170905.zip )


This image is fairly different than the previous images and will likely be used for the base going forward.   The major changes are:


1) Based on Debian Stretch 9.1.   The old 1.5-1.9 images (and the Pi images) are based on 7.x (wheezy).   My previous images were based on 8.7 (Jessie).   These are based on 9.1 (Stretch).  What does that mean for normal folks?   Not much really.  However, it provides us a good base for which they will be supporting for years to come.  (wheezy is no longer supported)


2) My code moved into "official" FalconChristmas github repos.   Instead of using my forks of fpp and LEDscape, this image now uses branches in the repos in the  FalconChristmas org on github.    That mostly will mean that going forward, we should be able to do "upgrades" and stuff easier and quicker.   As others add new features (like the new remote codes for the F16v3 and such), I can incorporate the changes a bit easier.


There are a few other bug fixes in FPP, added ccache to speed up the updating process, minor P5/10 tweaks, but nothing major.      Anyway, since this is a complete OS level update, it's not something that can be updated via a script or anything.   It's really a re-flash kind of thing.   Hopefully the last one for this year.   


That said, since it's a complete OS update, there may be some things I missed.   There were some things in the OS that did cause issues.  For one, only PHP7 is available.   Previously we've used PHP5.   Things seem to look OK, but I'm not 100% sure everything is ready for PHP7.   Also, I discovered that Debian 9.1 creates private /tmp dirs for various services (like Apache) so things that are stored in /tmp (like the FPPD control socket) were not visible to other processes.  I fixed apache by turning that off, but there may be other places that need it.   If you see something that isn't working, please speak up.   I'd like to get it fixed ASAP.


I haven't done a ton of testing with it yet.   Just basic test with my P5 panels to make sure the PRU's are working and such.



Dan Kulp

Online dkulp

  • Sr. Member
  • ****
  • Join Date: Sep 2013
  • Location: Framingham, MA
  • Posts: 348
  • Kudos: 8
Re: New BBB Image - Debian Stretch (9.1)
« Reply #1 on: September 05, 2017, 06:16:42 PM »
And, as always, to use this image:


The zip file contains a single "img" file.  You will need to use something that can write that image to an SD card (that is at least 4GB in size).  I use "ApplePi-Baker".   Once written to the SD card, place it in the BBB and hold down the "Boot switch" button (the button at the other end of the board from the power connections, just above the SD card) and power the BBB.   Keep holding for about 10 seconds.   It should boot off the card.   Other options for flashing the SD card are listed at:  https://beagleboard.org/getting-started#update


Offline JonB256

  • Supporting Member
  • ******
  • Join Date: Mar 2013
  • Location: Granbury, Texas
  • Posts: 3,552
  • Kudos: 74
    • Granbury Christmas Lights
Re: New BBB Image - Debian Stretch (9.1)
« Reply #2 on: September 05, 2017, 08:50:07 PM »
I'll repeat another helpful tip.

Power the BBB from a USB cable connected to your computer.
When you hold down S2 to boot from the SD card, it boots very quickly.
For me, I've removed my Octoscroller so I can reach the S2 easily. My wireless won't work and I don't have a CAT5 cable connected.

But, if you've powered from a computer USB, the BBB will be accessible from your browser at 192.168.7.2  (for Windows)

Now, you can go to FPP Settings, then Advanced Settings and run the "copy to eMMC" script

Code: [Select]
IP Address Connection Type Operating System(s) Status
192.168.7.2 USB Windows
192.168.6.2 USB Mac OS X, Linux
192.168.8.1 WiFi all

Offline JonB256

  • Supporting Member
  • ******
  • Join Date: Mar 2013
  • Location: Granbury, Texas
  • Posts: 3,552
  • Kudos: 74
    • Granbury Christmas Lights
Re: New BBB Image - Debian Stretch (9.1)
« Reply #3 on: September 05, 2017, 09:20:03 PM »
Dan, got it installed and running. Everything that was working is still working.

But - can't get the Time to change away from UTC.  Other things will change and store to settings. (SD card is not read only)

Online dkulp

  • Sr. Member
  • ****
  • Join Date: Sep 2013
  • Location: Framingham, MA
  • Posts: 348
  • Kudos: 8
Re: New BBB Image - Debian Stretch (9.1)
« Reply #4 on: September 06, 2017, 06:37:17 AM »

But - can't get the Time to change away from UTC.  Other things will change and store to settings. (SD card is not read only)


Thanks for the report... should be fixed now.




Offline JonB256

  • Supporting Member
  • ******
  • Join Date: Mar 2013
  • Location: Granbury, Texas
  • Posts: 3,552
  • Kudos: 74
    • Granbury Christmas Lights
Re: New BBB Image - Debian Stretch (9.1)
« Reply #5 on: September 06, 2017, 07:53:44 AM »
Yes, time is working again.

Sent from my SM-G955U using Tapatalk


Offline twooly

  • Supporting Member
  • ******
  • Join Date: Oct 2013
  • Location:
  • Posts: 982
  • Kudos: 13
Re: New BBB Image - Debian Stretch (9.1)
« Reply #6 on: September 06, 2017, 02:50:46 PM »
Having some trouble with the flash to emmc under the advanced settings.  Looks like its working and then I get this shortly after I start it.  Going to give it another shot to see if it was just a fluke.

Code: [Select]
Preparing future rootfs to receive files
----------------------------------------

==> Formatting rootfs with mkfs.ext4  -O ^metadata_csum,^64bit /dev/mmcblk1p1 -L rootfs
--------------------------------------------------------------------------------

mke2fs 1.43.4 (31-Jan-2017)
Discarding device blocks:   4096/957440             failed - Input/output error
Warning: could not erase sector 2: Input/output error
Creating filesystem with 957440 4k blocks and 239520 inodes
Filesystem UUID: da1c9e92-84f5-4304-a4c5-7f250909ee7c
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736

Allocating group tables:  0/30     done                           
Warning: could not read block 0: Input/output error
Warning: could not erase sector 0: Input/output error
Writing inode tables:  0/30     done                           
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information:  0/30 8/30     
Warning, had trouble writing out superblocks.
Traceback (last called is first):
     _format_root() in /opt/scripts/tools/eMMC/functions.sh:820
     _prepare_future_rootfs() in /opt/scripts/tools/eMMC/functions.sh:1328
     prepare_drive() in /opt/scripts/tools/eMMC/functions.sh:1379
     main() in /opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh:49
The command LC_ALL=C mkfs.ext4 ${ext4_options} ${rootfs_partition} -L ${rootfs_label} exited with exit code 5.
================================================================================
Tearing Down script environment
==> Unmounting /tmp
umount: /tmp: target is busy
        (In some cases useful info about processes that
         use the device is found by lsof(8) or fuser(1).)
==> Stopping Cylon LEDs ...
==> Setting LEDs to
==> Force writeback of eMMC buffers by Syncing: /dev/mmcblk1
/opt/scripts/tools/eMMC/functions.sh: line 250:  3572 Terminated              cylon_leds
----------------------------------------
100000+0 records in
100000+0 records out
51200000 bytes (51 MB, 49 MiB) copied, 2.02355 s, 25.3 MB/s
----------------------------------------
===> Syncing: /dev/mmcblk1 complete
==> This script took 104 seconds to run
================================================================================
==> Setting LEDs to


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

Offline twooly

  • Supporting Member
  • ******
  • Join Date: Oct 2013
  • Location:
  • Posts: 982
  • Kudos: 13
Re: New BBB Image - Debian Stretch (9.1)
« Reply #7 on: September 06, 2017, 03:11:17 PM »
worked on the second try, nothing to see here....... :)

Online dkulp

  • Sr. Member
  • ****
  • Join Date: Sep 2013
  • Location: Framingham, MA
  • Posts: 348
  • Kudos: 8
Re: New BBB Image - Debian Stretch (9.1)
« Reply #8 on: September 06, 2017, 03:13:55 PM »


Cool.  I used the eMMC flash thing to flash 8 beaglebones today and hadn't seen that.   I wouldn't have had an idea of where to even start.


:)


Offline twooly

  • Supporting Member
  • ******
  • Join Date: Oct 2013
  • Location:
  • Posts: 982
  • Kudos: 13
Re: New BBB Image - Debian Stretch (9.1)
« Reply #9 on: September 06, 2017, 07:21:50 PM »
Hmm I can't get the wireless to work, system sees it so not sure what I am doing wrong.  This device worked fine with your last image.

wlan0     IEEE 802.11bgn  ESSID:off/any
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off


Bus 001 Device 002: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless
Adapter
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x148f Ralink Technology, Corp.
  idProduct          0x5370 RT5370 Wireless Adapter
  bcdDevice            1.01
  iManufacturer           1 Ralink
  iProduct                2 802.11 n WLAN
  iSerial                 3 1.0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           67
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              450mA

Online dkulp

  • Sr. Member
  • ****
  • Join Date: Sep 2013
  • Location: Framingham, MA
  • Posts: 348
  • Kudos: 8
Re: New BBB Image - Debian Stretch (9.1)
« Reply #10 on: September 06, 2017, 07:57:27 PM »
Can you open up a command line and do a "rm /etc/network/interfaces*" and "rm /etc/wpa_supplicant/wpa*"


The wifi stuff was the main thing I had problems getting to work when moving from 8.7 to 9.1.  The problem is they moved the connmanctrl from /usr/sbin to /usr/bin.   Thus, the scripts couldn't tell that connman was controlling the wifi and would create the older style files.   


Also, check if /tmp/fpp.config file exists and contains the proper wireless information.     


That said, I don't know what wifi adapter you are using.   The edup things I use are all "0x8178 RTL8192CU 802.11n WLAN Adapter" and thus use the 8192cu module. 

Offline twooly

  • Supporting Member
  • ******
  • Join Date: Oct 2013
  • Location:
  • Posts: 982
  • Kudos: 13
Re: New BBB Image - Debian Stretch (9.1)
« Reply #11 on: September 07, 2017, 07:41:11 AM »
Ran both of those commands and the /tmp/fpp.config has the correct information in it.  Still doesn't look like it wants to connect.

This is the adapter I am using. I wanted an external antenna to get some more strength out of the connection since I use a few of my BBB across the street.  They did work in your last image.
https://www.amazon.com/gp/product/B00H95C0A2/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1



Think I should give this a whirl?
https://wiki.debian.org/rt2800usb

Online dkulp

  • Sr. Member
  • ****
  • Join Date: Sep 2013
  • Location: Framingham, MA
  • Posts: 348
  • Kudos: 8
Re: New BBB Image - Debian Stretch (9.1)
« Reply #12 on: September 07, 2017, 08:42:34 AM »
I ordered a RT5370 adapter to see if I can reproduce.   Won't be here till Saturday though.

In anycase, from the command line, can you run connmanctl.   From within connmanctrl, run "scan wifi" and then "services" and see if it at least picks up the ESSID's?   You might be able to follow the connman cheat sheets to see if you can get it to work:

https://gist.github.com/kylemanna/6930087


Offline twooly

  • Supporting Member
  • ******
  • Join Date: Oct 2013
  • Location:
  • Posts: 982
  • Kudos: 13
Re: New BBB Image - Debian Stretch (9.1)
« Reply #13 on: September 07, 2017, 08:50:25 AM »
Doesn't look like it probably loading at all

fpp@FPPTest:~$ connmanctl scan wifi
Scan completed for wifi
fpp@FPPTest:~$ connmanctl services
*AO Wired                ethernet_544a16e711ef_cable
fpp@FPPTest:~$

Offline twooly

  • Supporting Member
  • ******
  • Join Date: Oct 2013
  • Location:
  • Posts: 982
  • Kudos: 13
Re: New BBB Image - Debian Stretch (9.1)
« Reply #14 on: September 11, 2017, 02:02:27 PM »
Just playing around.  I'm following the section for manual config using WPA-PSK and WPA2-PSK.

https://wiki.debian.org/WiFi/HowToUse

fpp@FPPTest:~$ sudo ifup wlan0
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
run-parts: /etc/network/if-pre-up.d/wpasupplicant exited with return code 1
ifup: failed to bring up wlan0
fpp@FPPTest:~$

 

Back to top