Commit Graph

89 Commits

Author SHA1 Message Date
Alexander Couzens 40032e1b0b replace old u-boot setlocalversion script with our git describe
version now includes our tag as well.
2015-07-19 21:49:02 +02:00
Alexander Couzens 451635eda3 configs/jb02v2: remove 'v2' from initramfs file
the jb02v2 must match the openwrt board name which doesn't contain a v2 and isn't
easy changable
2015-07-19 21:01:53 +02:00
Alexander Couzens d97d1ee1f2 correct recovery filenames to be in sync with openwrt builds
removed prefix -skw and -cb2 from jb names
2015-07-19 19:02:34 +02:00
Alexander Couzens a40eea5aa4 fix type which broke jb02v2-cb2 image
jb02v2-cb used the wrong config file.
2015-07-15 01:51:13 +02:00
Alexander Couzens aa579e90e9 configs: rename recovery image filename to be consistant
sed -i 's/-sysmo-/-sysmocom-/g'
2015-06-30 19:17:30 +02:00
Alexander Couzens 7923dcb950 correct recovery file names to match openwrt initramfs names 2015-06-03 21:57:16 +02:00
Alexander Couzens 2caf7c3d47 disable usb init stuff
usbboot is not used by us.
ar7240_usb_initial_config changes PLL value which could be
a problem.
2015-06-03 21:26:12 +02:00
Alexander Couzens 07469c59e3 detect flash chips by jedec ids instead of using hardcoded values 2015-06-02 11:38:54 +02:00
Alexander Couzens 37e46a66f3 fix indention
2 space indention was used. Using tabs
2015-05-20 14:24:19 +02:00
Alexander Couzens 832abd89bb ar7240/flash: make jedec id usable
It just read and printf() the value, but doesn't returned it
2015-05-20 14:12:02 +02:00
Alexander Couzens 6ae76c3541 dhcp: increase timeout counts to wait long enoguh for STP forward 2015-05-19 16:18:49 +02:00
Alexander Couzens 36f05d569d cmd_recovery: remove old unused argument force 2015-05-19 11:00:29 +02:00
Alexander Couzens e962169649 cmd_recovery: replace flashing with booting an initramfs image 2015-05-19 10:59:29 +02:00
Alexander Couzens 211d005623 jb02v3-skw: increase flash size to 16mb 2015-05-12 17:15:46 +02:00
Alexander Couzens 35dabe9f00 add missing configuration file for jb02v3-skw based on ap2 2015-05-12 16:11:51 +02:00
Alexander Couzens 4de88f22b4 add support for jb02v3-skw based on ap2 2015-05-12 16:10:06 +02:00
Alexander Couzens 92b0391332 rename jb02 into jb02v2-cb2 2015-05-12 16:09:47 +02:00
Alexander Couzens 7ea899a6d8 Revert "cmd_recovery: seperate multicommand lines by "&&"."
This reverts commit a418c264b2.
run_command() doesn't understand &&.
2015-04-06 19:40:52 +02:00
Alexander Couzens b5cd30559c cmd_setmac/showserial: use value not the pointer as output 2015-04-06 18:52:39 +02:00
Alexander Couzens a418c264b2 cmd_recovery: seperate multicommand lines by "&&". 2015-04-06 18:39:05 +02:00
Alexander Couzens fa2f0a886c cmd_setmac/setserial: fix incompatible pointer warning + unused variable 2015-04-06 18:30:52 +02:00
Alexander Couzens ac606588bb cmd_setmac/setserial: use simple_stroul instead of skip_atoi 2015-04-06 18:28:06 +02:00
Alexander Couzens 14586c76a0 cmd_setmac: remove unused include <stdlib.h> 2015-04-06 18:25:20 +02:00
Alexander Couzens a32bdf95de setserial: fix error message and rename var serialnumber -> serial_number 2015-04-06 18:23:11 +02:00
Alexander Couzens 2a21e331db use skip_atoi instead of atoi
atoi requires a stdlib. skip_atoi is much simpler
2015-04-06 18:19:14 +02:00
Alexander Couzens 0e514396fa add command setserial and showserial 2015-04-06 17:14:40 +02:00
Alexander Couzens d54bbbc1e8 version: fix a typo 2015-04-04 20:42:13 +02:00
Alexander Couzens d6651043e2 replace 8devices/Caraboot version string with sysmocom 2015-04-04 17:30:14 +02:00
Alexander Couzens 8a9d269a8e configs: remove duplicate define BOOTDELAY from ar7240.h
It's not ar7240 specific and creates warning, because it's already defined in common.h.
2015-03-16 16:31:42 +01:00
Alexander Couzens 521b18c48a configs: enable command saves - send a region over srecord 2015-03-16 16:16:11 +01:00
Alexander Couzens 4acb292f4e configs: run recovery when bootm fails 2015-03-16 16:05:47 +01:00
Alexander Couzens 93aed6751b cmd_recovery: fix run_command("set ...") `set <var>` -> `setenv <var>` 2015-03-12 01:47:51 +01:00
Alexander Couzens 72e548d4c5 add setmac/showmac commands to setmac or showmac
setmac <eth0> <eth1> <wlan0> [nobackup]
setmac first do a backup of the calibration sector. It copys the
sector to the sector before itself. This behavious can be overwritten by
adding `nobackup`.

showmac - show mac addreses.
2015-03-12 01:42:22 +01:00
Alexander Couzens 401b4f165b cmd_mii/progmac: add ifdef CMD_PROGMAC to disable progmac 2015-03-11 18:05:07 +01:00
Alexander Couzens 41a2d23979 Makefile: add ap1 + jb02 targets 2015-03-11 17:59:14 +01:00
Alexander Couzens 3d9467d828 configs: add configuration for ap1 and jb02 2015-03-11 17:58:41 +01:00
Alexander Couzens 4378289084 configs: carambola2 use carambola2 recovery image 2015-03-11 17:58:41 +01:00
Alexander Couzens f401292cf7 Makefile: rename skylab targets to ap2 2015-03-11 17:58:37 +01:00
Alexander Couzens 01a658ce51 configs: rename skylab -> ap2 2015-03-11 17:40:17 +01:00
Alexander Couzens 96158b1b2e configs: move CFG_BOOTM_LEN into common.h 2015-03-11 17:38:37 +01:00
Alexander Couzens fd424cf047 configs: move CFG_BOOTM_LEN up to flash configuration 2015-03-11 17:37:45 +01:00
Alexander Couzens 9735e7c4b9 configs: move ETHADDR into common.h 2015-03-11 17:36:26 +01:00
Alexander Couzens e38d63e12d bootcycle: add argument value to cmd `inccycle`
value define how much the counter should increased
2015-03-11 16:37:33 +01:00
Alexander Couzens b59bb608cd configs/skylab: fix BOARDCAL location
BOARDCAL is used by progmac and ethernet code to load the mac address
from flash.
2015-03-10 14:54:12 +01:00
Alexander Couzens aaa2d179da configs: remove unused define WLANCAL 2015-03-10 14:52:56 +01:00
Alexander Couzens 90ec4c87c8 ag7240: fix valid mac address detection
replace mac[0] != 00 with mac[0] != ff otherwise the mac is wrong
2015-03-10 14:46:48 +01:00
Alexander Couzens 292f453210 congfigs/bootcmd: run recovery if bootm fails 2015-03-10 11:48:16 +01:00
Alexander Couzens 847feac483 recovery: introduce new define RECOVERY_FILENAME_STRING for tftp in cmd_recovery
It's used to define a different recovery image for ap1 and ap2
2015-03-09 19:33:35 +01:00
Alexander Couzens d0ae6edf65 recovery: add comment to erase u-boot enviroment 2015-03-09 19:32:36 +01:00
Alexander Couzens bedd2f78d2 recovery: remove old dead gpio checking code 2015-03-09 15:36:33 +01:00