Bananian
Pi Pro - hw-config is: BananaPi Q: Do I wanna change it?
10
4842
View: 4842|Reply: 10
|
[Bananian]
Pi Pro - hw-config is: BananaPi Q: Do I wanna change it?
[Copy link]
|
|
Dear friends and users of bananian,
thank you for reading this!
Please excuse my language above, I was just trying to reduce the length of this thread-title.
I own a Banana Pi Pro. My Power Source is a TP-LINK UH720 7-Port USB 3.0 HUB + 2 powerports (2,4A)
My SD-Card is a Samsung Memory 32GB EVO MicroSDHC UHS-I Grade 1 Class 10 Memory Card (up to 48MB/s) with SD Adapter.
My keyboard is a Perixx Periboard-716DE.
During configuration-process of bananian-1501, I'm stuck at this question:
Your current hardware configuration is: BananaPi
Do you want to change it? (y/N)
Since I have a banana pi pro, I'm wondering if just BananaPi is the correct answer to this.
Any idea? Simply searching the internet didn't solve my problem yet.
Thank you again for reading! Happy to read from you and don't hesitate to give me further infos on how to get startet.
My goals by the way with this bananian pi pro are:
- samba-server
- ssh-server [check]
- mysql-server
- web-server (apache is easier for me than nginx)
- hardening, portknocking, etc.
- plug-mount and umount external harddrives with ext4 and ntfs either with auto-fs or udev, perhaps even with http://sispmctl.sourceforge.net/
- somehow reducing read and write operations on sd-card in order to extend the health of my sd-card.
- perhaps voip (gemeinschaft 5.0 or freepbx, don't know yet)
- UPS with (APCUPSD)
- personal mail server
- cron-based rsync-backups of other linux-clients to external harddrives
- perhaps more, depends on how much CPU is left then
I don't know if I should write that in my own blog or document everything here in an own thread. Any suggestions? |
|
|
|
|
|
|
|
Edited by herrmeier at Thu Jan 15, 2015 17:27
I found something in- # less /usr/local/bin/bananian-config
Copy the Code- echo -e "---------------------------------------------------------------------------------"
- echo -e "Your current hardware configuration is: ${BANANIAN_PLATFORM}"
- echo -n "Do you want to change it? (y/N) "
- read CHANGE
- if [ "$CHANGE" = "y" ]; then {
- echo -e ""
- bananian-hardware
- echo -e ""
- } fi
Copy the Code that leads to:- # less /usr/local/bin/bananian-hardware
Copy the Code- # get Bananian platform (default: BananaPi) and version
- [ -f /etc/bananian_platform ] && BANANIAN_PLATFORM=$(cat /etc/bananian_platform) || BANANIAN_PLATFORM="BananaPi"
- [ -f /etc/bananian_version ] && BANANIAN_VERSION=$(cat /etc/bananian_version) || BANANIAN_VERSION=140801
- if [ $BANANIAN_VERSION -lt 150101 ]; then {
- echo -e "\033[0;31mThis version of bananian-hardware requires Bananian Linux 15.01 (or later). Exiting\033[0m"
- exit
- } fi
- # prepare tmp dir
- TMPDIR=$(mktemp -d)
- cd $TMPDIR
- # mount /dev/mmcblk0p1
- mkdir ${TMPDIR}/mnt
- mount /dev/mmcblk0p1 ${TMPDIR}/mnt
- # fex dir
- FEXDIR="${TMPDIR}/mnt/fex"
- # read available fex configurations
- RADIOLIST=()
- for FEX in ${FEXDIR}/*
- do
- FEX=$(basename $FEX)
- if [ "$FEX" = "$BANANIAN_PLATFORM" ]; then {
- RADIOLIST+=("$FEX" "" "ON")
- } else {
- RADIOLIST+=("$FEX" "" "OFF")
- } fi
- done
- # show dialog
- BANANIAN_PLATFORM=$(whiptail --title "Bananian hardware configuration" --radiolist \
- "\nPlease select your Banana board:" 20 78 10 \
- "${RADIOLIST[@]}" \
- 3>&1 1>&2 2>&3)
- if [[ $BANANIAN_PLATFORM = *"OTG"* ]] || [[ $BANANIAN_PLATFORM = *"otg"* ]]; then {
- if ! (whiptail --title "Warning" --yesno "Enabling OTG can lead to an unbootable system!\nTo avoid this issue please make sure you use the 'DC in' port for power supply\nin combination with a reliable 2 A power adapter\n\nDo you want to continue?" 12 85); then {
- BANANIAN_PLATFORM=""
- } fi
- } fi
- # verify selection and set correct script.bin
- if [[ -z $BANANIAN_PLATFORM ]]; then {
- echo -e "\033[0;31mNo platform selected. exiting!\033[0m"
- } else {
- if [[ -f ${FEXDIR}/${BANANIAN_PLATFORM}/script.bin ]]; then {
- cp ${FEXDIR}/${BANANIAN_PLATFORM}/script.bin ${TMPDIR}/mnt/script.bin
- echo $BANANIAN_PLATFORM > /etc/bananian_platform
- echo -e "Hardware configuration has been set to: ${BANANIAN_PLATFORM}. Please reboot your system!"
- } else {
- echo -e "\033[0;31mscript.bin not found. exiting!\033[0m"
- } fi
- } fi
- # clean up
- umount ${TMPDIR}/mnt && rm -rf $TMPDIR
Copy the Code So since I don't see anything about Banana Pi Pro, NO, I don't want to change my current hardware configuration. It is BananaPi, am I mistaken?
|
|
|
|
|
|
|
|
Use bananian-config and switch to Banana-Pro
|
|
|
|
|
|
|
|
@bullet64
Thank you for your helpfull reply! Did that right away.- # cat bananian_platform
- BananaPro
Copy the Code But ifconfig still doesn't show any wlan device yet. lspci doesn't exist either. What was changed with changing from hardware configuration BananaPi to BananaPro?
Thank you again for reading! |
|
|
|
|
|
|
|
Q: Why is there no wlan0 interface on Banana Pro?
A: You have to select the Banana Pro in 'bananian-hardware' and add 'ap6210' to /etc/modules to enable WiFi.
Source: bananian.org |
|
|
|
|
|
|
|
Edited by Bananian at Sat Jan 17, 2015 21:47
There is no "Banana Pi Pro".
There is a "Banana Pi" and a "Banana Pro". Choose the right configuration and add the module to /etc/modules as described on bananian.org. |
|
|
|
|
|
|
|
@Bananian:
Sorry I don't see, where I can choose Banana Pi Pro. I attached a screenshot. |
-
bananian_hardware_configuration
|
|
|
|
|
|
|
The proper name is BananaPro , not Banana Pi Pro.
So you will see two possibilities for BananaPro.
Choose BananaPro-OTG if you have a special dongle for micro USB |
|
|
|
|
|
|
|
Thank you all for your help! I really appreciate it!!
@don570: You are completely right. Sorry for not being precise:
I have two "female" micro-usb-"ports" on my Banana Pro. One micro-USB-"Port" on one short side for power-out (OTG) and one micro-USB-"port" for power input on the long side, just next to SATA2-Port. I've copied the picture from http://www.lemaker.org/statics/images/wb1/introImg.jpg.
So do I understand you correctly, I should choose BananaPo-OTG, since I have thatspecial dongle for micro USB on one short side of my Banana Pro, right next to reset and power button?
|
-
layout_banana_pro
|
|
|
|
|
|
|
Edited by mamiko at Wed Jan 21, 2015 05:36
herrmeier replied at Sat Jan 17, 2015 14:43 
Thank you all for your help! I really appreciate it!!
@don570: You are completely right. Sorry for n ...
The hardware is the same regarding micro usb ports, all have two, one of them is OTG. If you decide to use it for your dongle select proper config option.
|
|
|
|
|
|
|