Bananian

SATA port multiplier support

107 60833
tkaiser  
Edited by tkaiser at Sun Mar 8, 2015 14:13
dherajjotwani replied at Sat Mar 7, 2015 05:29
booted with ur kernel. added the config file for enabling pm. and bingo !!!


You're welcome. But be warned. If your data has any value I would better choose a system with ECC RAM than a SBC with PM attached.

BTW: Your backplane uses the SiI3726 IIRC? Would you please post PCI vendor and device ID (grep dmesg output for something like 0x1095:0x3726 when a multiplier is mentioned).

tkaiser replied at Sun Mar 8, 2015 14:13
You're welcome. But be warned. If your data has any value I would better choose a system with ECC  ...

I can't get my jm321 to see more than 1 disk. These are the steps I followed.

Downloaded http://mirror.igorpecovnik.com/B ... 4_wheezy_3.19.0.zip and wrote to sd card

Downloaded your 4.0.0 kernel, installed all deb packages

created the configuration file and enabled pmp=1

If I unplug either of the 2 drives 1 of them will show up, having both plugged in only one shows up. Where did I go wrong?

I even tried building the kernel from source and I struggled to find the kernel config file to modify. Any help would be much appreciated.

tkaiser  
Edited by tkaiser at Mon Mar 23, 2015 16:08
blindpet replied at Mon Mar 23, 2015 15:25
These are the steps I followed


Please post the exact output of
  1. cat /etc/modprobe.d/ahci-sunxi.conf
  2. zgrep CONFIG_AHCI_SUNXI /proc/config.gz
Copy the Code

Edited by blindpet at Mon Mar 23, 2015 17:06
tkaiser replied at Mon Mar 23, 2015 16:08
Please post the exact output of


Here you go, included blkid as well and although 2 drives connected only 1 shows
  1. root@bananapi:~# cat /etc/modprobe.d/ahci-sunxi.conf
  2. options ahci-sunxi enable_pmp=1
  3. root@bananapi:~# zgrep CONFIG_AHCI_SUNXI /proc/config.gz
  4. CONFIG_AHCI_SUNXI=y
  5. root@bananapi:~# blkid
  6. /dev/mmcblk0p1: LABEL="bananapi" UUID="04d5619b-37a1-483a-bc1c-672a61bb61d0E="ext4"
  7. /dev/sda1: UUID="ffd1ad88-3526-4815-ac2e-ff56b783e173" TYPE="ext4"
  8. /dev/sda5: UUID="c0038f78-380a-4b83-bb60-8fc936033393" TYPE="swap"
  9. after reboot and swapping around
  10. root@bananapi:~# blkid
  11. /dev/mmcblk0p1: LABEL="bananapi" UUID="04d5619b-37a1-483a-bc1c-672a61bb61d0" TYPE="ext4"
  12. /dev/sda1: LABEL="rootfs" UUID="dc363427-907c-4b3f-89cc-4ba892d00f7e" TYPE="ext4"

Copy the Code
I have swapped cables, ports, bays and hard drives. I am using the jmb321 multiplier cyrallo links to on his page. The only other thing I can think of is that I'm using a 4 x 2.5" in 5.25" bay but I can't see why that would affect anything.

Sidenote, do you think this jmb393 with RAID dip would be any better than the  jmb 321? It seems like a pseudo raid controller

tkaiser  
Edited by tkaiser at Mon Mar 23, 2015 23:51
blindpet replied at Mon Mar 23, 2015 17:05
CONFIG_AHCI_SUNXI=y


It should read 'CONFIG_AHCI_SUNXI=m' instead. What about 'uname -a'? Regarding the JMB393 please have a look into this thread: http://forum.lemaker.org/forum.php?mod=viewthread&tid=13527

tkaiser replied at Mon Mar 23, 2015 23:51
It should read 'CONFIG_AHCI_SUNXI=m' instead. What about 'uname -a'? Regarding the JMB393 please h ...

I will format and try again later, do you have an updated kernel package or can you provide slightly more detailed instructions so I can do it myself (e.g. where is the kernel config file, is it straight from the banana-pi kernel git repo or are you referring to modifying Igor's build.sh script and it goes under the advanced section?)

uname -a
  1. Linux bananapi 3.19.0-bananapi #2 SMP Thu Mar 12 23:57:46 CET 2015 armv7l GNU/Linux
Copy the Code
Thanks for your help

tkaiser  
Edited by tkaiser at Tue Mar 24, 2015 10:25
blindpet replied at Tue Mar 24, 2015 01:14
Linux bananapi 3.19.0-bananapi #2 SMP Thu Mar 12 23:57:46 CET 2015 armv7l GNU/Linux


It's 3.19.0 from Igor's latest image (v2.4 / 13.3.2015) which means you didn't install the kernel package I built. But this is necessary since only when ahci_sunxi is built as module you can switch between both modes easily.

You should create a temporary dir, then mv 4.0.0-rc1-bananapi-next.tar into it and then do
  1. cd /temp/dir/you/just/created
  2. tar xf 4.0.0-rc1-bananapi-next.tar
  3. dpkg -i -R .
Copy the Code
(this should install linux-headers-4.0.0-rc1-bananapi_2.2_armhf.deb, linux-image-4.0.0-rc1-bananapi_2.2_armhf.deb and linux-libc-dev_2.2_armhf.deb). After a reboot 'uname -a' should show a 4.0.0-rc1 kernel version and you can configure the module as you need.

tkaiser replied at Tue Mar 24, 2015 10:01
It's 3.19.0 from Igor's latest image (v2.4 / 13.3.2015) which means you didn't install the kernel  ...

Just did this from scratch and uname is still showing 3.19. I do have OMV installed but that shouldn't affect anything.

Could you tell me the kernel building stuff using the scripts (see previous post, where exactly do I put the flags)

tkaiser  
Edited by tkaiser at Tue Mar 24, 2015 10:34
blindpet replied at Tue Mar 24, 2015 10:23
Just did this from scratch and uname is still showing 3.19


You will need a reboot for the new kernel to load.

I simply started on a x86 Ubuntu 14.04 install (14.10 recommend) with Igor's build.sh as outlined here: https://github.com/igorpecovnik/BananaPI-Debian. After the first run I replaced the contents of BananaPI-Debian/lib/config/linux-sunxi-next.config with the following (but it's ok if you just change CONFIG_AHCI_SUNXI=y to CONFIG_AHCI_SUNXI=m): http://pastebin.com/fj80CTtq

A subsequent run of build.sh will then only build a new kernel and exchange it in the image. But you have to take care -- I don't know whether Igor implemented version and sanity checks right now. I ended up with broken u-boot versions for a few days and kernel 4.0.0-rc1

  1. The system is going down for reboot NOW!
  2. root@bananapi:/tmp#
  3. login as: root
  4. root@192.168.40.107's password:

  5. ____                                  ____ ___
  6. | __ )  __ _ _ __   __ _ _ __   __ _  |  _ \_ _|
  7. |  _ \ / _` | '_ \ / _` | '_ \ / _` | | |_) | |
  8. | |_) | (_| | | | | (_| | | | | (_| | |  __/| |
  9. |____/ \__,_|_| |_|\__,_|_| |_|\__,_| |_|  |___|


  10. Last login: Tue Mar 24 17:28:11 2015 from alienware.local

  11. Load: 0.10, 0.03, 0.01 - Drive: 24°C - Memory: 972Mb

  12. uroot@bananapi:~# uname -a
  13. Linux bananapi 3.19.0-bananapi #2 SMP Thu Mar 12 23:57:46 CET 2015 armv7l GNU/Linux
Copy the Code
OK I will give that a try, thanks

You have to log in before you can reply Login | Sign Up

Points Rules