Skip to content

Commit

Permalink
Pine64 dev: enable UAS and decrease cpufreq to 816MHz
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Kaiser committed Nov 23, 2016
1 parent 8a6193c commit 61f5dc4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/bootscripts/boot-pine64-next.cmd
Expand Up @@ -11,7 +11,7 @@ setenv rootfstype "ext4"

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

if load mmc 0 ${load_addr} /boot/armbianEnv.txt || load mmc 0 ${load_addr} armbianEnv.txt; then
env import -t ${load_addr} ${filesize}
Expand Down
2 changes: 1 addition & 1 deletion config/kernel/linux-pine64-dev.config
Expand Up @@ -3073,7 +3073,7 @@ CONFIG_USB_STORAGE=y
# CONFIG_USB_STORAGE_KARMA is not set
# CONFIG_USB_STORAGE_CYPRESS_ATACB is not set
# CONFIG_USB_STORAGE_ENE_UB6250 is not set
# CONFIG_USB_UAS is not set
CONFIG_USB_UAS=y

#
# USB Imaging devices
Expand Down

4 comments on commit 61f5dc4

@ThomasKaiser
Copy link
Contributor

@ThomasKaiser ThomasKaiser commented on 61f5dc4 Nov 23, 2016

Choose a reason for hiding this comment

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

An Armbian (Xenial 16.04 LTS) image with cpufreq at 864 MHz can be found here: https://transfer.sh/O2q4P/armbian-5.24-pine64-ubuntu-xenial-4.9.0.zip

  • 4.9 kernel based on MoeIcenowy's ice-a64-v6.1 branch
  • Tested on Pine64+ with Gigabit Ethernet (sometimes no connection, needs most probably tx-delay/rx-delay tweaks)
  • USB with UAS works on lower USB port (fast!)
  • SPI works thanks to @martinayotte
  • cpuinfo entries fixed
  • headless of course
  • OS image is fixed in size since btrfs was used (fits on 1 GB SD cards). OS is zlib compressed and rootfs default is lzo (feels snappy even on crappy SD cards!)

1st login with root/1234, you will be immediately asked to change your password and later to create an unprivileged (but sudo enabled) user account. Breaking this will lead to a reboot loop (funny bug Armbian keeps to annoy impatient first time users!)

In case you run into problems please blame the hardware and not software (especially when testing network or USB)

@martinayotte
Copy link
Contributor

@martinayotte martinayotte commented on 61f5dc4 Nov 24, 2016

Choose a reason for hiding this comment

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

lower USB port

@tkaiser , BTW, the fact that it is on lower port is simply that Icenowy dedicated EHCI and OHCI on each ports.
Normally, on other boards, there are both EHCI/OCHI for each ports.
I didn't wish to bother Icenowy too much if she will do that way soon.

@ThomasKaiser
Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, right. I should've noticed already when looking at lsusb output. So it might already be fixable with just a little DT hack and it was enough to do the only test of importance (now): http://linux-sunxi.org/USB/UAS#UAS_capable_Allwinner_SoCs

@ThomasKaiser
Copy link
Contributor

Choose a reason for hiding this comment

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

Well, she said it's something different: https://irclog.whitequark.org/linux-sunxi/2016-11-24#18257143;

(can't test any more today, busy in the kitchen)

Please sign in to comment.