mirror of
https://github.com/armbian/build.git
synced 2026-01-06 09:58:46 -08:00
no message
This commit is contained in:
1387
config/cubieboard2.fex
Normal file
1387
config/cubieboard2.fex
Normal file
File diff suppressed because it is too large
Load Diff
1402
config/cubietruck.fex
Normal file
1402
config/cubietruck.fex
Normal file
File diff suppressed because it is too large
Load Diff
19
config/hostapd.conf.bananapi-next
Normal file
19
config/hostapd.conf.bananapi-next
Normal file
@@ -0,0 +1,19 @@
|
||||
ssid=BANANA
|
||||
interface=wlan0
|
||||
hw_mode=g
|
||||
channel=1
|
||||
bridge=br0
|
||||
|
||||
logger_syslog=0
|
||||
logger_syslog_level=0
|
||||
|
||||
wmm_enabled=0
|
||||
wpa=2
|
||||
preamble=1
|
||||
wpa_psk=66eb31d2b48d19ba216f2e50c6831ee11be98e2fa3a8075e30b866f4a5ccda27
|
||||
wpa_passphrase=12345678
|
||||
wpa_key_mgmt=WPA-PSK
|
||||
wpa_pairwise=TKIP
|
||||
rsn_pairwise=CCMP
|
||||
auth_algs=1
|
||||
macaddr_acl=0
|
||||
19
config/hostapd.conf.cubietruck
Normal file
19
config/hostapd.conf.cubietruck
Normal file
@@ -0,0 +1,19 @@
|
||||
ssid=CUBIE
|
||||
interface=wlan0
|
||||
hw_mode=g
|
||||
channel=1
|
||||
bridge=br0
|
||||
|
||||
logger_syslog=0
|
||||
logger_syslog_level=0
|
||||
|
||||
wmm_enabled=0
|
||||
wpa=2
|
||||
preamble=1
|
||||
wpa_psk=66eb31d2b48d19ba216f2e50c6831ee11be98e2fa3a8075e30b866f4a5ccda27
|
||||
wpa_passphrase=12345678
|
||||
wpa_key_mgmt=WPA-PSK
|
||||
wpa_pairwise=TKIP
|
||||
rsn_pairwise=CCMP
|
||||
auth_algs=1
|
||||
macaddr_acl=0
|
||||
17
config/hostapd.conf.cubox-i
Normal file
17
config/hostapd.conf.cubox-i
Normal file
@@ -0,0 +1,17 @@
|
||||
ssid=CUBOX
|
||||
interface=wlan0
|
||||
hw_mode=g
|
||||
channel=1
|
||||
bridge=br0
|
||||
driver=nl80211
|
||||
logger_syslog=0
|
||||
logger_syslog_level=0
|
||||
wmm_enabled=0
|
||||
wpa=2
|
||||
preamble=1
|
||||
wpa_psk=66eb31d2b48d19ba216f2e50c6831ee11be98e2fa3a8075e30b866f4a5ccda27
|
||||
wpa_passphrase=12345678
|
||||
wpa_key_mgmt=WPA-PSK
|
||||
rsn_pairwise=CCMP
|
||||
auth_algs=1
|
||||
macaddr_acl=0
|
||||
5987
config/linux-cubox-next.config
Normal file
5987
config/linux-cubox-next.config
Normal file
File diff suppressed because it is too large
Load Diff
64
config/lirc.conf.cubietruck
Normal file
64
config/lirc.conf.cubietruck
Normal file
@@ -0,0 +1,64 @@
|
||||
# generated by devinput.sh
|
||||
begin remote
|
||||
name devinput
|
||||
bits 16
|
||||
eps 30
|
||||
aeps 100
|
||||
pre_data_bits 16
|
||||
pre_data 0x0001
|
||||
post_data_bits 32
|
||||
post_data 0x00000001
|
||||
gap 132799
|
||||
toggle_bit 0
|
||||
|
||||
begin codes
|
||||
POWER 87
|
||||
MUTE 92
|
||||
HELP 5
|
||||
PREFS 9
|
||||
FAVS 21
|
||||
R2C1 4
|
||||
R2C2 8
|
||||
R2C3 20
|
||||
VOLUME+ 255
|
||||
VOLUME- 93
|
||||
INFO 16
|
||||
MOUSE 17
|
||||
ZOOM+ 12
|
||||
ZOOM- 88
|
||||
R5C1 84
|
||||
R5C2 91
|
||||
R5C3 23
|
||||
MENU 22
|
||||
HOME 71
|
||||
BACK 79
|
||||
LEFT 6
|
||||
RIGHT 14
|
||||
UP 67
|
||||
DOWN 10
|
||||
OK 2
|
||||
STOP 19
|
||||
PLAY 80
|
||||
SEARCH 13
|
||||
REV 7
|
||||
FWD 3
|
||||
PREV 15
|
||||
NEXT 11
|
||||
RED 85
|
||||
GREEN 78
|
||||
YELLOW 73
|
||||
BLUE 72
|
||||
1 26
|
||||
2 1
|
||||
3 69
|
||||
4 89
|
||||
5 77
|
||||
6 64
|
||||
7 82
|
||||
8 83
|
||||
9 65
|
||||
0 90
|
||||
AUDIO 68
|
||||
SUBTITLE 70
|
||||
end codes
|
||||
end remote
|
||||
127
config/lirc.conf.cubox-i
Normal file
127
config/lirc.conf.cubox-i
Normal file
@@ -0,0 +1,127 @@
|
||||
#
|
||||
# this config file was automatically generated
|
||||
# using lirc-0.8.3(default) on Thu Jun 4 11:04:55 2009
|
||||
#
|
||||
# contributed by Maarten Platjes
|
||||
#
|
||||
# brand: LG
|
||||
# model no. of remote control: MKJ40653802
|
||||
# devices being controlled by this remote:
|
||||
# LG 2008 LCD TVs like 19LS4D , 22LS4D ,
|
||||
# 19LG30 , 22LG30 , 26LG30 , 32LG30 , 37LG30 ,
|
||||
# 42LG30 , 32LG50 , 37LG50 , 42LG50 , 47LG50 ,
|
||||
# 52LG50and variants of these models (xxLGx000)
|
||||
#
|
||||
# Note: The MKJ40653802 in STB mode does not
|
||||
# output all keys, the ones that are not
|
||||
# mapped do not work in STB mode (remote simply
|
||||
# doesn't output anything when pressing the keys)
|
||||
#
|
||||
|
||||
begin remote
|
||||
|
||||
name MKJ40653802-TV
|
||||
bits 16
|
||||
flags SPACE_ENC|CONST_LENGTH
|
||||
eps 30
|
||||
aeps 100
|
||||
|
||||
header 9061 4473
|
||||
one 591 1660
|
||||
zero 591 521
|
||||
ptrail 590
|
||||
pre_data_bits 16
|
||||
pre_data 0x20DF
|
||||
gap 108029
|
||||
toggle_bit_mask 0x0
|
||||
|
||||
begin codes
|
||||
KEY_POWER 0x10EF # Was: power
|
||||
input 0xD02F
|
||||
tv/radio 0x0FF0
|
||||
q.menu 0xA25D
|
||||
KEY_MENU 0xC23D # Was: menu
|
||||
KEY_INFO 0xD52A # Was: guide
|
||||
KEY_UP 0x02FD # Was: up
|
||||
KEY_LEFT 0xE01F # Was: left
|
||||
KEY_RIGHT 0x609F # Was: right
|
||||
KEY_DOWN 0x827D # Was: down
|
||||
KEY_OK 0x22DD # Was: ok
|
||||
KEY_EXIT 0x14EB # Was: return/exit
|
||||
KEY_INFO 0x55AA # Was: info
|
||||
av_mode 0x0CF3
|
||||
KEY_VOLUMEUP 0x40BF # Was: vol_up
|
||||
KEY_VOLUMEDOWN 0xC03F # Was: vol_down
|
||||
mark/fav 0x7887
|
||||
KEY_MUTE 0x906F # Was: mute
|
||||
KEY_PAGEUP 0x00FF # Was: page_up
|
||||
KEY_PAGEDOWN 0x807F # Was: page_down
|
||||
KEY_1 0x8877 # Was: 1
|
||||
KEY_2 0x48B7 # Was: 2
|
||||
KEY_3 0xC837 # Was: 3
|
||||
KEY_4 0x28D7 # Was: 4
|
||||
KEY_5 0xA857 # Was: 5
|
||||
KEY_6 0x6897 # Was: 6
|
||||
KEY_7 0xE817 # Was: 7
|
||||
KEY_8 0x18E7 # Was: 8
|
||||
KEY_9 0x9867 # Was: 9
|
||||
KEY_0 0x08F7 # Was: 0
|
||||
KEY_LIST 0xCA35 # Was: list
|
||||
q.view 0x58A7
|
||||
KEY_RED 0x4EB1 # Was: red
|
||||
green/stop 0x8E71
|
||||
yellow/play 0xC639
|
||||
blue/pause 0x8679
|
||||
KEY_TEXT 0x04FB # Was: text
|
||||
t.opt/rev 0x847B
|
||||
KEY_SUBTITLE 0x9C63 # Was: subtitle/ffw
|
||||
KEY_RECORD 0xBD42 # Was: rec
|
||||
simplink 0x7E81
|
||||
end codes
|
||||
|
||||
end remote
|
||||
|
||||
begin remote
|
||||
|
||||
name MKJ40653802-STB
|
||||
bits 16
|
||||
flags SPACE_ENC|CONST_LENGTH
|
||||
eps 30
|
||||
aeps 100
|
||||
|
||||
header 9062 4467
|
||||
one 589 1662
|
||||
zero 589 522
|
||||
ptrail 587
|
||||
pre_data_bits 16
|
||||
pre_data 0xEF10
|
||||
gap 107967
|
||||
toggle_bit_mask 0x0
|
||||
|
||||
begin codes
|
||||
input 0xD02F
|
||||
KEY_POWER 0x10EF # Was: power
|
||||
KEY_MENU 0xC23D # Was: menu
|
||||
KEY_UP 0x02FD # Was: up
|
||||
KEY_DOWN 0x827D # Was: down
|
||||
KEY_RIGHT 0x609F # Was: right
|
||||
KEY_LEFT 0xE01F # Was: left
|
||||
KEY_OK 0x22DD # Was: ok
|
||||
KEY_1 0x8877 # Was: 1
|
||||
KEY_2 0x48B7 # Was: 2
|
||||
KEY_3 0xC837 # Was: 3
|
||||
KEY_4 0x28D7 # Was: 4
|
||||
KEY_5 0xA857 # Was: 5
|
||||
KEY_6 0x6897 # Was: 6
|
||||
KEY_7 0xE817 # Was: 7
|
||||
KEY_8 0x18E7 # Was: 8
|
||||
KEY_9 0x9867 # Was: 9
|
||||
KEY_0 0x08F7 # Was: 0
|
||||
KEY_VOLUMEUP 0x40BF # Was: vol_up
|
||||
KEY_VOLUMEDOWN 0xC03F # Was: vol_down
|
||||
KEY_MUTE 0x906F # Was: mute
|
||||
KEY_PAGEUP 0x00FF # Was: page_up
|
||||
KEY_PAGEDOWN 0x807F # Was: page_down
|
||||
end codes
|
||||
|
||||
end remote
|
||||
1
config/modules.bananapi-next
Normal file
1
config/modules.bananapi-next
Normal file
@@ -0,0 +1 @@
|
||||
brcmfmac
|
||||
20
config/modules.cubietruck
Normal file
20
config/modules.cubietruck
Normal file
@@ -0,0 +1,20 @@
|
||||
hci_uart
|
||||
gpio_sunxi
|
||||
bt_gpio
|
||||
wifi_gpio
|
||||
rfcomm
|
||||
hidp
|
||||
sunxi-ir
|
||||
sunx_ss
|
||||
bonding
|
||||
spi_sun7i
|
||||
bcmdhd
|
||||
# if you want access point mode, load wifi module this way: bcmdhd op_mode=2
|
||||
# and edit /etc/init.d/hostapd change DAEMON_CONF=/etc/hostapd.conf ; edit your wifi net settings in hostapd.conf ; reboot
|
||||
#
|
||||
# w1_sunxi
|
||||
#
|
||||
# Advanced LIRC driver: https://github.com/matzrh/sunxi-lirc
|
||||
#
|
||||
# lirc_gpio
|
||||
# sunxi_lirc
|
||||
1
config/modules.cubox-i
Normal file
1
config/modules.cubox-i
Normal file
@@ -0,0 +1 @@
|
||||
brcmfmac
|
||||
8
config/sources.list.jessie
Normal file
8
config/sources.list.jessie
Normal file
@@ -0,0 +1,8 @@
|
||||
deb http://ftp.de.debian.org/debian testing main contrib non-free
|
||||
deb-src http://ftp.de.debian.org/debian testing main contrib non-free
|
||||
|
||||
deb http://ftp.debian.org/debian/ jessie-updates main contrib non-free
|
||||
deb-src http://ftp.debian.org/debian/ jessie-updates main contrib non-free
|
||||
|
||||
deb http://security.debian.org/ jessie/updates main contrib non-free
|
||||
deb-src http://security.debian.org/ jessie/updates main contrib non-free
|
||||
9
config/sources.list.wheezy
Normal file
9
config/sources.list.wheezy
Normal file
@@ -0,0 +1,9 @@
|
||||
deb http://ftp.de.debian.org/debian stable main contrib non-free
|
||||
deb-src http://ftp.de.debian.org/debian stable main contrib non-free
|
||||
|
||||
deb http://ftp.debian.org/debian/ wheezy-updates main contrib non-free
|
||||
deb-src http://ftp.debian.org/debian/ wheezy-updates main contrib non-free
|
||||
|
||||
deb http://security.debian.org/ wheezy/updates main contrib non-free
|
||||
deb-src http://security.debian.org/ wheezy/updates main contrib non-free
|
||||
|
||||
5
config/uEnv.cubieboard2
Normal file
5
config/uEnv.cubieboard2
Normal file
@@ -0,0 +1,5 @@
|
||||
console=ttyS0,115200
|
||||
root=/dev/mmcblk0p1 rootwait
|
||||
extraargs=rootfstype=ext4 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_no_mali_mem_reserve sunxi_fb_mem_reserve=16 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x720p60 panic=10 consoleblank=0
|
||||
script=cubieboard2.bin
|
||||
kernel=uImage
|
||||
5
config/uEnv.cubietruck
Normal file
5
config/uEnv.cubietruck
Normal file
@@ -0,0 +1,5 @@
|
||||
console=ttyS0,115200
|
||||
root=/dev/mmcblk0p1 rootwait
|
||||
extraargs=rootfstype=ext4 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_no_mali_mem_reserve sunxi_fb_mem_reserve=16 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x720p60 panic=10 consoleblank=0
|
||||
script=cubietruck.bin
|
||||
kernel=uImage
|
||||
1
config/uEnv.cubox-i
Normal file
1
config/uEnv.cubox-i
Normal file
@@ -0,0 +1 @@
|
||||
mmcargs=setenv bootargs root=/dev/mmcblk0p1 rootfstype=ext4 rootwait console=ttymxc0,115200n8 video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32 rd.dm=0 rd.luks=0 rd.lvm=0 raid=noautodetect pci=nomsi quiet
|
||||
104
patch/hb-i2c-spi.patch
Normal file
104
patch/hb-i2c-spi.patch
Normal file
@@ -0,0 +1,104 @@
|
||||
--- linux-linaro-stable-mx6/arch/arm/boot/dts/imx6qdl-hummingboard.dtsi 2014-09-16 12:27:09.500971944 -0500
|
||||
+++ linux-imx6-3.14/arch/arm/boot/dts/imx6qdl-hummingboard.dtsi 2014-09-16 10:11:41.773085665 -0500
|
||||
@@ -128,6 +128,31 @@
|
||||
};
|
||||
};
|
||||
|
||||
+&i2c3 {
|
||||
+ clock-frequency = <100000>;
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&pinctrl_hummingboard_i2c3>;
|
||||
+ status = "okay";
|
||||
+};
|
||||
+
|
||||
+&ecspi2 {
|
||||
+ fsl,spi-num-chipselects = <2>;
|
||||
+ cs-gpios = <&gpio2 26 1>, <&gpio2 27 1>;
|
||||
+ pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&pinctrl_hummingboard_spi>;
|
||||
+ status = "okay";
|
||||
+ spidev@0x00 {
|
||||
+ compatible = "spidev";
|
||||
+ spi-max-frequency = <5000000>;
|
||||
+ reg = <0>;
|
||||
+ };
|
||||
+ spidev@0x01 {
|
||||
+ compatible = "spidev";
|
||||
+ spi-max-frequency = <5000000>;
|
||||
+ reg = <1>;
|
||||
+ };
|
||||
+};
|
||||
+
|
||||
&audmux {
|
||||
status = "okay";
|
||||
};
|
||||
@@ -153,8 +178,8 @@
|
||||
sgtl5000: sgtl5000@0a {
|
||||
clocks = <&clks 201>;
|
||||
compatible = "fsl,sgtl5000";
|
||||
- pinctrl-0 = <&pinctrl_hummingboard_sgtl5000>;
|
||||
pinctrl-names = "default";
|
||||
+ pinctrl-0 = <&pinctrl_hummingboard_sgtl5000>;
|
||||
reg = <0x0a>;
|
||||
VDDA-supply = <®_3p3v>;
|
||||
VDDIO-supply = <®_3p3v>;
|
||||
@@ -195,6 +220,17 @@
|
||||
>;
|
||||
};
|
||||
|
||||
+ pinctrl_hummingboard_spi: hummingboard_spi {
|
||||
+ fsl,pins = <
|
||||
+ MX6QDL_PAD_EIM_OE__ECSPI2_MISO 0x100b1
|
||||
+ MX6QDL_PAD_EIM_CS1__ECSPI2_MOSI 0x100b1
|
||||
+ MX6QDL_PAD_EIM_CS0__ECSPI2_SCLK 0x100b1
|
||||
+ /* MX6QDL_PAD_EIM_RW__ECSPI2_SS0 0x100b1 */
|
||||
+ MX6QDL_PAD_EIM_RW__GPIO2_IO26 0x100b1
|
||||
+ MX6QDL_PAD_EIM_LBA__ECSPI2_SS1 0x100b1
|
||||
+ >;
|
||||
+ };
|
||||
+
|
||||
pinctrl_hummingboard_gpio3_5: hummingboard-gpio3_5 {
|
||||
fsl,pins = <
|
||||
MX6QDL_PAD_EIM_DA5__GPIO3_IO05 0x80000000
|
||||
@@ -221,6 +257,13 @@
|
||||
>;
|
||||
};
|
||||
|
||||
+ pinctrl_hummingboard_i2c3: hummingboard-i2c3 {
|
||||
+ fsl,pins = <
|
||||
+ MX6QDL_PAD_EIM_D17__I2C3_SCL 0x4001b8b1
|
||||
+ MX6QDL_PAD_EIM_D18__I2C3_SDA 0x4001b8b1
|
||||
+ >;
|
||||
+ };
|
||||
+
|
||||
pinctrl_hummingboard_sgtl5000: hummingboard-sgtl5000 {
|
||||
fsl,pins = <
|
||||
MX6QDL_PAD_DISP0_DAT19__AUD5_RXD 0x130b0 /*brk*/
|
||||
@@ -267,12 +310,6 @@
|
||||
MX6QDL_PAD_SD2_DAT3__SD2_DATA3 0x13059
|
||||
>;
|
||||
};
|
||||
-
|
||||
- pinctrl_hummingboard_pcie_reset: hummingboard-pcie-reset {
|
||||
- fsl,pins = <
|
||||
- MX6QDL_PAD_EIM_DA4__GPIO3_IO04 0x80000000
|
||||
- >;
|
||||
- };
|
||||
};
|
||||
};
|
||||
|
||||
@@ -328,14 +365,3 @@
|
||||
fsl,cpu_pdnscr_iso2sw = <0x1>;
|
||||
fsl,cpu_pdnscr_iso = <0x1>;
|
||||
};
|
||||
-
|
||||
-&pcie {
|
||||
- pinctrl-names = "default";
|
||||
- pinctrl-0 = <
|
||||
- &pinctrl_hummingboard_pcie_reset
|
||||
- >;
|
||||
- reset-gpio = <&gpio3 4 0>;
|
||||
- status = "okay";
|
||||
- no-msi;
|
||||
-};
|
||||
-
|
||||
18
scripts/02periodic
Normal file
18
scripts/02periodic
Normal file
@@ -0,0 +1,18 @@
|
||||
// Enable the update/upgrade script (0=disable)
|
||||
APT::Periodic::Enable "1";
|
||||
|
||||
// Do "apt-get update" automatically every n-days (0=disable)
|
||||
APT::Periodic::Update-Package-Lists "1";
|
||||
|
||||
// Do "apt-get upgrade --download-only" every n-days (0=disable)
|
||||
APT::Periodic::Download-Upgradeable-Packages "1";
|
||||
|
||||
// Run the "unattended-upgrade" security upgrade script
|
||||
// every n-days (0=disabled)
|
||||
// Requires the package "unattended-upgrades" and will write
|
||||
// a log in /var/log/unattended-upgrades
|
||||
APT::Periodic::Unattended-Upgrade "1";
|
||||
|
||||
// Do "apt-get autoclean" every n-days (0=disable)
|
||||
APT::Periodic::AutocleanInterval "7";
|
||||
|
||||
59
scripts/50unattended-upgrades
Normal file
59
scripts/50unattended-upgrades
Normal file
@@ -0,0 +1,59 @@
|
||||
// Automatically upgrade packages from these origin patterns
|
||||
Unattended-Upgrade::Origins-Pattern {
|
||||
// Archive or Suite based matching:
|
||||
// Note that this will silently match a different release after
|
||||
// migration to the specified archive (e.g. testing becomes the
|
||||
// new stable).
|
||||
// "o=Debian,a=stable";
|
||||
// "o=Debian,a=stable-updates";
|
||||
// "o=Debian,a=proposed-updates";
|
||||
"origin=Debian,archive=stable,label=Debian-Security";
|
||||
};
|
||||
|
||||
// List of packages to not update
|
||||
Unattended-Upgrade::Package-Blacklist {
|
||||
// "vim";
|
||||
// "libc6";
|
||||
// "libc6-dev";
|
||||
// "libc6-i686";
|
||||
};
|
||||
|
||||
// This option allows you to control if on a unclean dpkg exit
|
||||
// unattended-upgrades will automatically run
|
||||
// dpkg --force-confold --configure -a
|
||||
// The default is true, to ensure updates keep getting installed
|
||||
//Unattended-Upgrade::AutoFixInterruptedDpkg "false";
|
||||
|
||||
// Split the upgrade into the smallest possible chunks so that
|
||||
// they can be interrupted with SIGUSR1. This makes the upgrade
|
||||
// a bit slower but it has the benefit that shutdown while a upgrade
|
||||
// is running is possible (with a small delay)
|
||||
//Unattended-Upgrade::MinimalSteps "true";
|
||||
|
||||
// Install all unattended-upgrades when the machine is shuting down
|
||||
// instead of doing it in the background while the machine is running
|
||||
// This will (obviously) make shutdown slower
|
||||
//Unattended-Upgrade::InstallOnShutdown "true";
|
||||
|
||||
// Send email to this address for problems or packages upgrades
|
||||
// If empty or unset then no email is sent, make sure that you
|
||||
// have a working mail setup on your system. A package that provides
|
||||
// 'mailx' must be installed. E.g. "user@example.com"
|
||||
//Unattended-Upgrade::Mail "root";
|
||||
|
||||
// Set this value to "true" to get emails only on errors. Default
|
||||
// is to always send a mail if Unattended-Upgrade::Mail is set
|
||||
//Unattended-Upgrade::MailOnlyOnError "true";
|
||||
|
||||
// Do automatic removal of new unused dependencies after the upgrade
|
||||
// (equivalent to apt-get autoremove)
|
||||
//Unattended-Upgrade::Remove-Unused-Dependencies "false";
|
||||
|
||||
// Automatically reboot *WITHOUT CONFIRMATION* if a
|
||||
// the file /var/run/reboot-required is found after the upgrade
|
||||
//Unattended-Upgrade::Automatic-Reboot "false";
|
||||
|
||||
|
||||
// Use apt bandwidth limit feature, this example limits the download
|
||||
// speed to 70kb/sec
|
||||
//Acquire::http::Dl-Limit "70";
|
||||
54
scripts/armhwinfo
Normal file
54
scripts/armhwinfo
Normal file
@@ -0,0 +1,54 @@
|
||||
#! /bin/sh
|
||||
### BEGIN INIT INFO
|
||||
# Provides: armhwinfo
|
||||
# Required-Start:
|
||||
# Required-Stop: glibc
|
||||
# Default-Start: S
|
||||
# Default-Stop:
|
||||
# Short-Description: Get some info about hardware for some ARM boards
|
||||
### END INIT INFO
|
||||
|
||||
CORES=$(grep -c ^processor /proc/cpuinfo)
|
||||
MEMTOTAL=$(awk 'BEGIN { printf "%.0f\n", '$(grep MemTotal /proc/meminfo | awk '{print $2}')'/1024/1024 }')
|
||||
ARCH=$(lscpu | grep Architecture | awk '{print $2}')
|
||||
RTC=$(dmesg | grep rtc0 | awk '{print $(NF)}')
|
||||
HB_PCI=$(dmesg | grep '16c3:abcd')
|
||||
HARDWARE=$(cat /proc/cpuinfo | grep Hardware | awk '{print $3}')
|
||||
GMAC=$(dmesg | grep "sunxi_gmac-0:00")
|
||||
|
||||
# ARM
|
||||
if [ "$ARCH" = "armv7l" ]; then
|
||||
if [ "$HARDWARE" = "sun7i" ]; then
|
||||
ID="Allwinner"
|
||||
if [ "$MEMTOTAL" = 2 ]; then
|
||||
ID="Cubietruck"
|
||||
else
|
||||
if [ -n "$GMAC" ]; then
|
||||
ID="Banana PI"
|
||||
else
|
||||
ID="Cubieboard"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
if [ "$HARDWARE" = "Freescale" ]; then
|
||||
ID="Freescale"
|
||||
if [ "$MEMTOTAL" = 2 ]; then
|
||||
ID="Cubox i4"
|
||||
else
|
||||
if [ "$HB_PCI" != "" ]; then
|
||||
ID="HB i2eX"
|
||||
else
|
||||
if [ "$RTC" = "rtc0" ]; then
|
||||
ID="Cubox i2eX"
|
||||
else
|
||||
ID="HB i2"
|
||||
if [ "$CORES" = 1 ]; then ID="HB i1"; fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "" > /var/run/motd.dynamic
|
||||
toilet -f standard -F metal "$ID" >> /var/run/motd.dynamic
|
||||
echo "" >> /var/run/motd.dynamic
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user