Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Allwinner H5 SID

Featured Replies

Friends, tell me is it possible to get the SID on the device itself?

 

With the article, read:
http://linux-sunxi.org/SID_Register_Guide

 

In my sun50i-h5.dtsi:

soc {
	sid: eeprom @ 1c14000 {
                 compatible = "allwinner, sun50i-h5-sid";
                 reg = <0x1c14000 0x400>;
    }
}
#: sunxi-fel sid
> ERROR: Allwinner USB FEL device not found!

 

As I understand it, this utility retrieves from a remote device connected in FEL mode.

But is it possible to somehow get the SID directly on the summit device?

3 hours ago, Evgeny said:

tell me is it possible to get the SID on the device itself?

Yes ! Using the method explained in the Guide you've mentioned ...

Grab this source https://bootlin.com/pub/mirror/devmem2.c , compile it, and use this from the Guide :

d0=`./devmem2 0x01c14200 w|grep Value|sed 's/^.*: 0x/ /'`
d1=`./devmem2 0x01c14204 w|grep Value|sed 's/^.*: 0x/ /'`
d2=`./devmem2 0x01c14208 w|grep Value|sed 's/^.*: 0x/ /'`
d3=`./devmem2 0x01c1420c w|grep Value|sed 's/^.*: 0x/ /'`
echo $d0 $d1 $d2 $d3

 

  • Author
On 12/5/2018 at 11:43 PM, martinayotte said:

Yes ! Using the method explained in the Guide you've mentioned ...

Grab this source https://bootlin.com/pub/mirror/devmem2.c , compile it, and use this from the Guide :


d0=`./devmem2 0x01c14200 w|grep Value|sed 's/^.*: 0x/ /'`
d1=`./devmem2 0x01c14204 w|grep Value|sed 's/^.*: 0x/ /'`
d2=`./devmem2 0x01c14208 w|grep Value|sed 's/^.*: 0x/ /'`
d3=`./devmem2 0x01c1420c w|grep Value|sed 's/^.*: 0x/ /'`
echo $d0 $d1 $d2 $d3

 

Thanks for your reply! It was very useful for me and I will definitely apply it in the future.

i get bus errors on memory access for 0x01c14204 & 0x01c1420c.

 

is this expected ?

 

92C000BA 50368518

1 hour ago, t-bob said:

i get bus errors on memory access for 0x01c14204 & 0x01c1420c.

 

is this expected ? 

Good catch !!!

 

The original file from https://bootlin.com/pub/mirror/devmem2.c is only supporting 32bits SoC, so for 64bits accesses, those 2 addresses are invalid.

I've found patches written by denix0 here : https://github.com/openembedded/meta-openembedded/tree/master/meta-oe/recipes-support/devmem2/devmem2

The first patch to apply is "devmem2-fixups-2.patch", then we can apply "0001-devmem.c-ensure-word-is-32-bit-and-add-support-for-6.patch" ...

 

Then run the following :

d0=`./devmem2 0x01c14200 l|grep Read|sed 's/^.*: 0x/ /'`
d1=`./devmem2 0x01c14208 l|grep Read|sed 's/^.*: 0x/ /'`
echo $d0 $d1

 

excellent. many thanks for that. now i get this which seems like an impressive SID :)

 

6400462092C000BA:541500CE50368518

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.