Skip to content

Commit

Permalink
Bump Pine64 dev to 4.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Kaiser committed Nov 22, 2016
1 parent 0615500 commit 756b144
Show file tree
Hide file tree
Showing 2 changed files with 287 additions and 78 deletions.
4 changes: 4 additions & 0 deletions config/bootscripts/boot-pine64-next.cmd
Expand Up @@ -9,6 +9,10 @@ setenv rootdev "/dev/mmcblk0p1"
setenv verbosity "1"
setenv rootfstype "ext4"

# temp fix: increase cpufreq and bus clock / speeds things up with vanilla images
mw.l 0x1c2005c 1
mw.l 0x1c20000 0x80001110

if load mmc 0 ${load_addr} /boot/armbianEnv.txt || load mmc 0 ${load_addr} armbianEnv.txt; then
env import -t ${load_addr} ${filesize}
fi
Expand Down

11 comments on commit 756b144

@ThomasKaiser
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Boot log (1 GB dev sample, later 2 GB normal Pine64+): http://sprunge.us/iJXj

Still no luck with USB :(

@martinayotte
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No luck with USB ? Strange, I got them working with Icenowy's ice-a64-v6.1 branch.

@ThomasKaiser
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it's just my kernel config -- no idea.

@ThomasKaiser
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the two commands from boot script but to no avail. My lsusb output is totally empty.

@martinayotte
Copy link
Contributor

@martinayotte martinayotte commented on 756b144 Nov 22, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean that lsusb doesn't even show the hubs ?
Do you have something by doing "cat /sys/kernel/debug/usb/devices" ?

BTW, I've just found out that Icenowy did a typo, but it doesn't prevent USB working. She named usb@01c1a400 while it's register is 0x1c1b400, and samething for usb@01c1a000 with 0x1c1b000. It is only the name since anyway it is working, but ... I found that while doing a "cat /sys/kernel/debug/usb/devices" and comparing the DTS

EDIT : BTW, I'm using Pine64+, maybe there something missing in the 1GB DTS ? I will look ...

@ThomasKaiser
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neither lsusb nor cat /sys/kernel/debug/usb/devices shows anything. I'm also using Pine64+ (tested on both 1GB and 2GB model) but DT differences shouldn't matter at all:

root@pine64:/boot/dtb/allwinner# ls -la
total 66
drwxr-xr-x  2 root root  1024 Nov 22 18:21 .
drwxr-xr-x 24 root root  1024 Nov 22 17:40 ..
-rw-r--r--  1 root root 12268 Nov 22 17:12 sun50i-a64-bananapi-m64.dtb
-rw-r--r--  1 root root 12025 Nov 22 17:12 sun50i-a64-pine64.dtb
-rw-r--r--  1 root root 14175 Nov 22 18:21 sun50i-a64-pine64.dts
-rw-r--r--  1 root root 12029 Nov 22 17:12 sun50i-a64-pine64-plus.dtb
-rw-r--r--  1 root root 14182 Nov 22 18:17 sun50i-a64-pine64-plus.dts
root@pine64:/boot/dtb/allwinner# diff *.dts
7,8c7,8
< 	model = "Pine64";
< 	compatible = "pine64,pine64", "allwinner,sun50i-a64";
---
> 	model = "Pine64+";
> 	compatible = "pine64,pine64-plus", "allwinner,sun50i-a64";
192,193c192,193
< 				linux,phandle = <0xc>;
< 				phandle = <0xc>;
---
> 				linux,phandle = <0x17>;
> 				phandle = <0x17>;
201,202c201,202
< 				linux,phandle = <0x17>;
< 				phandle = <0x17>;
---
> 				linux,phandle = <0xc>;
> 				phandle = <0xc>;
390c390
< 			phy-mode = "rmii";
---
> 			phy-mode = "rgmii";

And correct DT should be loaded:

root@pine64:/boot/dtb/allwinner# cat /proc/device-tree/model 
Pine64+

@martinayotte
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is what was missing ;-)
8a036a8

@ThomasKaiser
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope! Does not work! Since operator way too dumb (me). Of course userpatches/linux-pine64-dev.config was still there. :(

Will report back in 5 minutes :)

@ThomasKaiser
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Martin, remain where you are. Am about to come by and hug you:

root@pine64:/mnt/btrfs# lsusb
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 174c:55aa ASMedia Technology Inc. ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

But of course # CONFIG_USB_UAS is not set. Gnaaaa... next try.

@martinayotte
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:-)

@ThomasKaiser
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With UAS enabled while testing a Samsung EVO 750 I get 41/42 MB/s (write/read at 4K block size). Thank you!

Please sign in to comment.