Re: [LEDE-DEV] [PATCH] Lantiq Amazon-SE SoC / ADSL Modem Allnet All0333CJ Rev.C

2017-03-11 Thread Tino Reichardt
* Bastian Bittorf  wrote:
> * Bastian Bittorf  [07.03.2017 11:07]:
> > * Tino Reichardt  [06.03.2017 08:24]:
> > > BE AWARE:
> > > My patch seems to work fine, even the dsl modem seems to be correctly
> > > loaded. But it's not tested currently... so please do not flash your
> > > modems, when they are needed currently ;)
> > 
> > Impressive! i will check if pppoe works later and report.
> 
> it seems, that the modem is not initialised correctly,
> there is e.g. no blinking of the led and 'nas0' will not
> come up and so no pppoe...if somebody has an idea, i can test.

I have currently no idea, maybe it's some wrong initialization, but it
may also be some kind of memory problem. I am working on it...

I get this:
...
[  775.828559] [IFX_MEI_IrqHandle 1834]: OMB_REBOOT_INTERRUPT_CODE
[  775.833315] [IFX_MEI_IrqHandle 1834]: OMB_REBOOT_INTERRUPT_CODE
[  777.749566] [DSL_BSP_FWDownload 1615]: 
[  778.080972] [IFX_MEI_DFEMemoryFree 1461]: Freeing memory 8039 
(Free_Reload)
[  778.087071] [IFX_MEI_DFEMemoryFree 1461]: Freeing memory 8033 
(Free_Reload)
[  778.094347] [IFX_MEI_DFEMemoryFree 1461]: Freeing memory 8037 
(Free_Reload)
[  778.101583] [IFX_MEI_DFEMemoryFree 1461]: Freeing memory 8034 
(Free_Showtime)
[  778.109020] [IFX_MEI_DFEMemoryFree 1461]: Freeing memory 8035 
(Free_Showtime)
[  778.116453] [IFX_MEI_DFEMemoryFree 1461]: Freeing memory 805a 
(Free_Reload)
[  778.123713] [IFX_MEI_DFEMemoryFree 1478]: free 32KB swap buff memory at: 
0x80de
[  778.131301] [IFX_MEI_DFEMemoryAlloc 1498]: image_size = 322840
[  778.137128] [DSL_BSP_FWDownload 1683]: -> IFX_MEI_BarUpdate()
[  778.151843] [DSL_BSP_FWDownload 1615]: 
[  778.161613] [DSL_BSP_FWDownload 1615]: 
[  778.234590] [DSL_BSP_FWDownload 1615]: 
[  778.244549] [DSL_BSP_FWDownload 1615]: 
[  778.250936] [IFX_MEI_Ioctls 2560]: DSL_FIO_BSP_DSL_START
[  778.255039] [IFX_MEI_RunAdslModem 1318]: allocate 32KB swap buff memory at: 
0x80de
[  779.617559] [IFX_MEI_RunAdslModem 1368]: Modem failed to be ready!
[  779.622491] [IFX_MEI_Ioctls 2562]: IFX_MEI_RunAdslModem() error...
-> here is some re-init:
[  780.557929] [DSL_BSP_FWDownload 1615]: 
[  780.737934] [IFX_MEI_DFEMemoryFree 1461]: Freeing memory 8037 
(Free_Reload)
[  780.744021] [IFX_MEI_DFEMemoryFree 1461]: Freeing memory 8033 
(Free_Reload)
[  780.751312] [IFX_MEI_DFEMemoryFree 1461]: Freeing memory 8039 
(Free_Reload)
[  780.758554] [IFX_MEI_DFEMemoryFree 1461]: Freeing memory 805a 
(Free_Showtime)
[  780.766004] [IFX_MEI_DFEMemoryFree 1461]: Freeing memory 805b 
(Free_Showtime)
[  780.773412] [IFX_MEI_DFEMemoryFree 1461]: Freeing memory 8034 
(Free_Reload)
[  780.780678] [IFX_MEI_DFEMemoryFree 1478]: free 32KB swap buff memory at: 
0x80de
[  780.788265] [IFX_MEI_DFEMemoryAlloc 1498]: image_size = 322840
[  780.794153] [DSL_BSP_FWDownload 1683]: -> IFX_MEI_BarUpdate()
[  781.017962] [DSL_BSP_FWDownload 1615]: 
[  781.027787] [DSL_BSP_FWDownload 1615]: 
[  781.077951] [DSL_BSP_FWDownload 1615]: 
[  781.087580] [DSL_BSP_FWDownload 1615]: 
[  781.093981] [IFX_MEI_Ioctls 2560]: DSL_FIO_BSP_DSL_START
[  781.098084] [IFX_MEI_RunAdslModem 1318]: allocate 32KB swap buff memory at: 
0x80de
[  781.450463] [IFX_MEI_IrqHandle 1856]: Got MODEM_READY_MSG
[  781.454703] [IFX_MEI_IrqHandle 1856]: Got MODEM_READY_MSG
[  781.689228] [IFX_MEI_RunAdslModem 1371]: Modem is ready.
-> here it is ready for some time, but then it gets an re-init...
[  785.584348] [IFX_MEI_IrqHandle 1834]: OMB_REBOOT_INTERRUPT_CODE
[  785.589101] [IFX_MEI_IrqHandle 1834]: OMB_REBOOT_INTERRUPT_CODE


When it works, I will update also the patchset.

-- 
Best regards, TR

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


[LEDE-DEV] [RFC] ADSL Modem Allnet All0333CJ Rev.C / Amazon-SE SoC

2016-11-03 Thread Tino Reichardt
Hello,

I have about 10-15 Allnet DSL Modems in use and just realized, that
they have an Linux SoC, which can be updated to more recent kernels...

Name: ALLNET ALL0333CJ Rev. C
Short Product Info (german) [1]

This is what I have done so far:
- made some pictures and checked the chips
- bought an serial to usb adapter and connected sucessfully to uboot
  and / or the system itself
- I have also telnet root access and a lot infos via webinterface
- download a lot code from vendors, which also use this SoC
- created a github repo for Amazon SE DSL Firmware [2]

Hardware Infos:
SoC, Amazon-SE PSB 50601: [3] [4]
- is supported in upstream Linux as "Amazon SE"
- they have three groups: 1) Amazon SE 2) XWAY 3) FALCON
- LEDE Kernel has these Lantiq groups:
  1) XRX200 2) XWAY 3) XWAY Legacy
  - for what does xway / xway legacy stand for?
  - the menuconfig help is not very descriptive there
  - can I add "Amazon SE" as another group, or should it belong to some
existing group?

Flash: 4MB (S29GL032N90TF104)
- not supported by current lede uboot (also no patches)
- I have to add this via patch for it (found in vendor code)

Downloaded Sourcecode for reference:
- netgear gpl code of DGN1000B [4] [5]
- the code of samsung modems [6]
- the allnet code [7]

Most of these Modems have only a very small flash of 2MB or 4MB .. so
there is no need for lot of stuff. My aim is to have nice DSL modems
with recent kernel and dsl firmware. pppoe is not really needed, but
will fit also into that flash, I think.

Where should I add my pictures and descriptions of that modem. Should I
make an extra project page onto my homepage, or is the lede wiki okay
for that? When okay, I need some sample device page of current lede
wiki.

The openwrt wiki is not accessable today via chromium, cause the
letsencrypt cert was valid until yesterday :/

Is it important, to have an own working uboot, or should I create some
kernel/rootfs image first ? What is the correct way? When I brick the
current vendor uboot, is there a way, to restore it via serial
interface?

So, thats enough, for an first message to the list ;)
Please comment some of my question, so the support for Lantiq Amazon-SE
boards is possible.


Links:
[1] http://www.allnet.de/fileadmin/transfer/products/98791.pdf
[2] https://github.com/mcmilk/Amazon-SE-Firmware
[3] https://wikidevi.com/wiki/Lantiq#AMAZON-S.2FSE.2FME
[3] http://ark.intel.com/products/92478/Intel-XWAY-AMAZONSE-Network-Processors
[4] https://sourceforge.net/projects/officialnetgearfirmware/files/
[5] 
http://kb.netgear.de/app/answers/detail/a_id/2649/~/netgear-open-source-code-for-programmers-(gpl)
[6] 
http://www.samsung.com/global/business/telecommunication-systems/resource/opensource/iad.html
[7] 
ftp://212.18.29.48/ftp/pub/allnet/dsl-modems/all0333cj/sourcecode_ALL0333CJ.zip

-- 
Best regards, TR

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


Re: [LEDE-DEV] [RFC] ADSL Modem Allnet All0333CJ Rev.C / Amazon-SE SoC

2016-11-03 Thread Tino Reichardt
* John Crispin  wrote:
> Hi Tino,
> 
> supporting ASE is possible, however once you have the wifi driver and
> dsl stuff installed there is not much space left for even a webui on the
> system. there was once support for dgn1000 but it got dropped as it was
> never really useful. if you want to add support for the allnet router,
> then best look at the commit history and find the commit that removed
> ase support and use that as a base to create a new patch for adding ASE
> back.

I will search in the git history for this.

Also, the Allnet Modem has no wifi @all ;)

1x LAN, 1x WAN, 1x serial (intern), 1x reset button

Here is a picture:
http://www.allnet-shop.de/out/pictures/master/product/3/all0333cj_3.jpg


-- 
Best regards, TR

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


Re: [LEDE-DEV] [RFC] ADSL Modem Allnet All0333CJ Rev.C / Amazon-SE SoC

2016-11-04 Thread Tino Reichardt
* Alberto Bursi  wrote:
> 
> 
> On 11/03/2016 10:13 AM, Tino Reichardt wrote:
> > Most of these Modems have only a very small flash of 2MB or 4MB .. so
> > there is no need for lot of stuff. My aim is to have nice DSL modems
> > with recent kernel and dsl firmware. pppoe is not really needed, but
> > will fit also into that flash, I think.
> >
> 
> Default LEDE image (router firmware with switch/router/firewall/wifi) 
> fits in 4MiB of flash (also with luci webinterface, if it is integrated 
> at firmware generation time), there are plenty of other supported 
> devices with 4MiB of flash.

Yes, my device has 4MB.

> 
> > Where should I add my pictures and descriptions of that modem. Should I
> > make an extra project page onto my homepage, or is the lede wiki okay
> > for that? When okay, I need some sample device page of current lede
> > wiki.
> >
> 
> For now the lede wiki isn't ready yet for devices, you can open a thread 
> in the LEDE forum in the development section, and the info will be moved 
> to the wiki when it is ready.
> https://forum.lede-project.org/

I will post there in the evening...

> 
> > Is it important, to have an own working uboot, or should I create some
> > kernel/rootfs image first ? What is the correct way? When I brick the
> > current vendor uboot, is there a way, to restore it via serial
> > interface?
> >
> 
> Most LEDE devices don't touch the vendor u-boot (or bootloaders) unless 
> they really have to, the LEDE firmware you make should mimic the stock 
> firmware's place on flash so the bootloader will boot it without 
> complaining.
> 
> The reason is that if you do a mistake and corrupt/damage the uboot, the 
> device will not boot anymore and recovery will require complex 
> procedures with (expensive) JTAG tools or desoldering the flash chip and 
> using another device to re-program it.

Yes, I will not touch the loader then... currently this loader is the
main problem I have, cause it's not loading my new built kernel 4.4.30 :(

This is the error I get:

AMAZON_SE # tftpboot
Using AMAZON_SE Switch device
TFTP from server 192.168.1.2; our IP address is 192.168.1.1
Filename 'uImage'.
Load address: 0x8010
Loading: #
 #
 #
 #
 #
 #
 #
 #
 #
 ##
done
Bytes transferred = 3145732 (34 hex)
AMAZON_SE # bootm 0x8010
Checking Images Integrity ...
  Kernel: OK
  Rootfs: OK
## Booting image at 8010 ...
   Image Name:   MIPS LEDE Linux-4.4.30
   Created:  2016-11-03   7:34:38 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:1358940 Bytes =  1.3 MB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... ERROR: LzmaDecode.c, 561

Decoding error = 1
LZMA ERROR 1 - must RESET board to recover


U-Boot 1.1.5-2.0 (Jan 24 2013 - 13:38:46)


The error comes from lzma version 4.40 and seems not related to the
lzma dictionary size option -d23 .. -d20 and so on...
-> the default Allnet Image uses 8Mib dictionary size also

Here is the code which does the warning:
https://dev.openwrt.org/browser/trunk/package/uboot-ifxmips/files/lib_generic/LzmaDecode.c?rev=13291


U-Boot Information: http://pastebin.com/fEj7TxDJ
Default Kernel Log: http://pastebin.com/1jiDffmG


There were also some fixes, which may related to that issue, I don't
know currently:
http://lists.denx.de/pipermail/u-boot/2013-December/169963.html
http://lists.denx.de/pipermail/u-boot/2014-December/197550.html
https://www.google.com/#q=lzma+fix+buffer+bound+site:lists.denx.de


-- 
Best regards, Tino

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


Re: [LEDE-DEV] [RFC] ADSL Modem Allnet All0333CJ Rev.C / Amazon-SE SoC

2016-11-04 Thread Tino Reichardt
* Mathias Kresin  wrote:
> 2016-11-04 9:46 GMT+01:00 Tino Reichardt :
> > * Alberto Bursi  wrote:
> >> On 11/03/2016 10:13 AM, Tino Reichardt wrote:
> >> > Most of these Modems have only a very small flash of 2MB or 4MB .. so
> >> > there is no need for lot of stuff. My aim is to have nice DSL modems
> >> > with recent kernel and dsl firmware. pppoe is not really needed, but
> >> > will fit also into that flash, I think.
> >> >
> >>
> >> Default LEDE image (router firmware with switch/router/firewall/wifi)
> >> fits in 4MiB of flash (also with luci webinterface, if it is integrated
> >> at firmware generation time), there are plenty of other supported
> >> devices with 4MiB of flash.
> >
> > Yes, my device has 4MB.
> 
> That is what the xway_legacy target is for. It was created to support
> 4MB flash devices by removing some kernel options and shrink the
> kernel.

okay

> > Bytes transferred = 3145732 (34 hex)
> > AMAZON_SE # bootm 0x8010
> > Checking Images Integrity ...
> >   Kernel: OK
> >   Rootfs: OK
> > ## Booting image at 8010 ...
> >Image Name:   MIPS LEDE Linux-4.4.30
> >Created:  2016-11-03   7:34:38 UTC
> >Image Type:   MIPS Linux Kernel Image (lzma compressed)
> >Data Size:1358940 Bytes =  1.3 MB
> >Load Address: 80002000
> >Entry Point:  80002000
> >Verifying Checksum ... OK
> >Uncompressing Kernel Image ... ERROR: LzmaDecode.c, 561
> >
> > Decoding error = 1
> > LZMA ERROR 1 - must RESET board to recover
> 
> Not sure what the root cause of the error is, but I've two possible
> workarounds in mind. You can try to tftp the kernel to memory address
> 0x8100:
> 
>   tftp 0x8100 uImage; bootm 0x8100

I did that also, but it didn't work.
The default Image is lzma, so lzma is okay. But I also tried -d20 and
even without dict. (lzma-no-dict). The last thing I tried, was to use
gzip, but then I see an error like:
 "this type of compression is not supported"

Did the netgear router (DGN1000B) ever successfull but an own image?
In the openwrt forum I found sth. like that, but they didn't really
write all things, they have tried... :(

> The brnboot bootloader for example doesn't like lzma with dictionary
> at all. To workaround the issue we are using lzma without dictionary
> (lzma-no-dict build step) for brnboot compatible images. Might work
> with this u-boot as well.


-- 
Best regards, TR

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


Re: [LEDE-DEV] [RFC] ADSL Modem Allnet All0333CJ Rev.C / Amazon-SE SoC

2016-11-04 Thread Tino Reichardt
* Mathias Kresin  wrote:
> 2016-11-04 9:46 GMT+01:00 Tino Reichardt :
> > * Alberto Bursi  wrote:
> >> On 11/03/2016 10:13 AM, Tino Reichardt wrote:
> >> > Most of these Modems have only a very small flash of 2MB or 4MB .. so
> >> > there is no need for lot of stuff. My aim is to have nice DSL modems
> >> > with recent kernel and dsl firmware. pppoe is not really needed, but
> >> > will fit also into that flash, I think.
> >> >
> >>
> > ## Booting image at 8010 ...
> >Image Name:   MIPS LEDE Linux-4.4.30
> >Created:  2016-11-03   7:34:38 UTC
> >Image Type:   MIPS Linux Kernel Image (lzma compressed)
> >Data Size:1358940 Bytes =  1.3 MB
> >Load Address: 80002000
> >Entry Point:  80002000
> >Verifying Checksum ... OK
> >Uncompressing Kernel Image ... ERROR: LzmaDecode.c, 561
> >
> > Decoding error = 1
> > LZMA ERROR 1 - must RESET board to recover
> 
> Not sure what the root cause of the error is, but I've two possible
> workarounds in mind. You can try to tftp the kernel to memory address
> 0x8100:
> 
>   tftp 0x8100 uImage; bootm 0x8100

This hint was right, I tried 0x80200, but then give up on this...
I think, 0x8100 (16MB) is to high, my dev has only 16MB ;)

But I used 6MB and now it boots. These commands are nedded:
# tftpboot 0x8060
# bootm 0x8060 does it.


-- 
Best regards, TR

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


Re: [LEDE-DEV] [RFC] ADSL Modem Allnet All0333CJ Rev.C / Amazon-SE SoC

2016-11-06 Thread Tino Reichardt
* Tino Reichardt  wrote:
> * Mathias Kresin  wrote:
> > 2016-11-04 9:46 GMT+01:00 Tino Reichardt :
> > > * Alberto Bursi  wrote:
> > >> On 11/03/2016 10:13 AM, Tino Reichardt wrote:
> > >> > Most of these Modems have only a very small flash of 2MB or 4MB .. so
> > >> > there is no need for lot of stuff. My aim is to have nice DSL modems
> > >> > with recent kernel and dsl firmware. pppoe is not really needed, but
> > >> > will fit also into that flash, I think.
> > >> >
> > >>
> > > ## Booting image at 8010 ...
> > >Image Name:   MIPS LEDE Linux-4.4.30
> > >Created:  2016-11-03   7:34:38 UTC
> > >Image Type:   MIPS Linux Kernel Image (lzma compressed)
> > >Data Size:1358940 Bytes =  1.3 MB
> > >Load Address: 80002000
> > >Entry Point:  80002000
> > >Verifying Checksum ... OK
> > >Uncompressing Kernel Image ... ERROR: LzmaDecode.c, 561
> > >
> > > Decoding error = 1
> > > LZMA ERROR 1 - must RESET board to recover
> > 
> > Not sure what the root cause of the error is, but I've two possible
> > workarounds in mind. You can try to tftp the kernel to memory address
> > 0x8100:
> > 
> >   tftp 0x8100 uImage; bootm 0x8100
> 
> This hint was right, I tried 0x80200, but then give up on this...
> I think, 0x8100 (16MB) is to high, my dev has only 16MB ;)
> 
> But I used 6MB and now it boots. These commands are nedded:
> # tftpboot 0x8060
> # bootm 0x8060 does it.

This kernel does not boot correctly :/

This is a full log of it: http://pastebin.com/exrBW02s

The main thing is, the kernel stops very early, I have turned on every
debug option, but have not much info :(

[0.00] Linux version 4.4.30 (mcmilk@lap-00488) (gcc version 5.4.0 (LEDE 
GCC 5.4.0 r2084) ) #0 Sat Nov 5 20:54:43 2016
[0.00] SOC_ID_AMAZON_SE_* done!
[0.00] SoC: Amazon_SE rev 1.3
[0.00] bootconsole [early0] enabled
[0.00] CPU0 revision is: 0001906c (MIPS 4KEc)
[0.00] MIPS: machine is ALL0333CJ - Allnet ALL0333CJ DSL Modem
[0.00] Determined physical RAM map:
[0.00]  memory: 00518000 @ 2000 (usable)
[0.00]  memory: 00136000 @ 0051a000 (usable after init)
[0.00] Wasting 64 bytes for tracking 2 unused pages

Has someone an idea?

I used a modified dgn1000b.dts for my device settings, here is a copy of
it: http://pastebin.com/x7iPz43z


-- 
Best regards, TR

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


Re: [LEDE-DEV] [RFC] ADSL Modem Allnet All0333CJ Rev.C / Amazon-SE SoC

2016-11-07 Thread Tino Reichardt
* Mathias Kresin  wrote:
> 2016-11-06 20:47 GMT+01:00 Tino Reichardt :
> > The main thing is, the kernel stops very early, I have turned on every
> > debug option, but have not much info :(
> >
> > [0.00] Linux version 4.4.30 (mcmilk@lap-00488) (gcc version 5.4.0 
> > (LEDE GCC 5.4.0 r2084) ) #0 Sat Nov 5 20:54:43 2016
> > [0.00] SOC_ID_AMAZON_SE_* done!
> > [0.00] SoC: Amazon_SE rev 1.3
> > [0.00] bootconsole [early0] enabled
> > [0.00] CPU0 revision is: 0001906c (MIPS 4KEc)
> > [0.00] MIPS: machine is ALL0333CJ - Allnet ALL0333CJ DSL Modem
> > [0.00] Determined physical RAM map:
> > [0.00]  memory: 00518000 @ 2000 (usable)
> > [0.00]  memory: 00136000 @ 0051a000 (usable after init)
> > [0.00] Wasting 64 bytes for tracking 2 unused pages
> >
> > Has someone an idea?
>
> I guess I found the commit mentioned by john which removed the AMAZON
> SE support [0] from the lantiq target. The obvious question that comes
> in mind when having a look at this commit: Do you have enabled
> CONFIG_SOC_AMAZON_SE in your kernel config? Not sure if it really
> makes a difference since the config option seams to be only used by
> target/linux/lantiq/patches-4.4/0008-MIPS-lantiq-backport-old-timer-code.patch
> and not in the kernel at all.

Yes, CONFIG_SOC_AMAZON_SE=y is in my .config settings.
I am trying now with cmdline settings like " ... mem=16M"

I will give feedback when done, I am also reading the patchset and try
to get into this mips specific settings... what is when called, and so
one...

> You might want to give the parent of the mentioned commit a try, to
> make sure that it worked at least back in the days.

I tried directly multiple images from the 12.09 release for amazon-se...
they all do not boot on my system, on one I got some output:

It was this one: openwrt-lantiq-ase-NONE-jffs2-256k

boot.log:


AMAZON_SE # bootm 0x8050
Checking Images Integrity ...
  Kernel: OK
  Rootfs: OK
## Booting image at 8050 ...
   Image Name:   MIPS OpenWrt Linux-3.3.8
   Created:  2013-03-23  13:11:17 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:972129 Bytes = 949.3 kB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

[0.00] Linux version 3.3.8 (blogic@Debian-60-squeeze-64-minimal) (gcc 
version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Sat Mar 23 
13:11:07 UTC 2013
[0.00] SoC: Amazon_SE rev 1.3
[0.00] bootconsole [early0] enabled
[0.00] CPU revision is: 0001906c (MIPS 4KEc)
[0.00] Determined physical RAM map:
[0.00]  memory: 0100 @  (usable)
[0.00] Initrd not found or empty - disabling initrd
[0.00] Zone PFN ranges:
[0.00]   Normal   0x -> 0x1000
[0.00] Movable zone start PFN for each node
[0.00] Early memory PFN ranges
[0.00] 0: 0x -> 0x1000
[0.00] Built 1 zonelists in Zone order, mobility grouping off.  Total 
pages: 4064
[0.00] Kernel command line:
[0.00] PID hash table entries: 64 (order: -4, 256 bytes)
[0.00] Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
[0.00] Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
[0.00] Primary instruction cache 8kB, VIPT, 4-way, linesize 16 bytes.
[0.00] Primary data cache 8kB, 2-way, VIPT, no aliases, linesize 16 
bytes
[0.00] Memory: 13132k/16384k available (2316k kernel code, 3252k 
reserved, 366k data, 164k init, 0k highmem)
[0.00] NR_IRQS:256
[0.00] CPU Clock: 266MHz
[0.00] Calibrating delay loop... 264.70 BogoMIPS (lpj=529408)
[0.036000] pid_max: default: 32768 minimum: 301
[0.04] Mount-cache hash table entries: 512
[0.056000] NET: Registered protocol family 16
[0.068000] gpiochip_add: registered GPIOs 0 to 15 on device: ltq_gpio
[0.072000] gpiochip_add: registered GPIOs 16 to 31 on device: ltq_gpio
[0.076000] MIPS: machine is Generic Lantiq based board
[0.104000] bio: create slab  at 0
[0.116000] Switching to clocksource MIPS
[0.132000] NET: Registered protocol family 2
[0.136000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[0.144000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[0.152000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[0.156000] TCP: Hash tables configured (established 512 bind 512)
[0.164000] TCP reno registered
[0.168000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[0.172000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[0.18] NET: Registered protocol family 1
[0.184000] gptu: totally 6 16-bit t

Re: [LEDE-DEV] How do you develop (compile) LEDE efficiently?

2016-11-07 Thread Tino Reichardt
* Rafał Miłecki  wrote:
> Hey,
> 
> So far I was always using my notebook for the development. My
> requirements were Intel i7 quad core + AMD GPU. I was using some
> Samsung but it's GPU has died and I can't replace it (stupid
> 216-0811000 chipset).
> 
> I'm looking for a new notebook, but I can't find anything with i7 quad
> core + AMD GPU. I may need to buy something with i7-6500U or i7-7500U
> which may be too slow for compiling LEDE.

I like the 2 Years old "used" laptops, selled by lapstore... maybe this
one would fit your needs, for "small" money:
http://www.lapstore.de/a.php/shop/lapstore/lang/x/a/20124/kw/Lenovo-ThinkPad-W530-2447-GW3-2463-A24

Intel Core i7-3720QM (4x 2,6 GHz / 8 MB Cache / 45W TDP)
16GB RAM (4x 4GB, max possible is 32GB)
15,6" TFT LED Display with ThinkLight for working in the dark ;)
1920 x 1080 Pixel (FHD)
1x 180GB SSD in it (space for 2x 2,5" HDD)
8xDVD+/-RW Dual Double Layer
Intel HD4000 CPU graphics, for progging
NVIDIA Quadro K1000M (2048 MB), for other things (linux driver works very well)
(incl. Windows 7 Prof. license)
= 750€

> How do you develop LEDE? Do you work on some powerful machine, or do
> you compile it remotely somehow? If you do it remotely, do you mount
> remote filesystem? I need a very good access to the build_dir for my
> needs.

I am using an Dell Latitude with i7-3632QM (4C/8T), make -j6 V=s works
fine... and the Samsung SSD with 1TB is fast + big... backup is done
every X weeks to a local Server via rsync.


-- 
Best regards, TR

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


Re: [LEDE-DEV] [RFC] ADSL Modem Allnet All0333CJ Rev.C / Amazon-SE SoC

2016-11-07 Thread Tino Reichardt
* Tino Reichardt  wrote:
> * Mathias Kresin  wrote:
> > 2016-11-06 20:47 GMT+01:00 Tino Reichardt :
> > > The main thing is, the kernel stops very early, I have turned on every
> > > debug option, but have not much info :(
> > >
> > > [0.00] Linux version 4.4.30 (mcmilk@lap-00488) (gcc version 5.4.0 
> > > (LEDE GCC 5.4.0 r2084) ) #0 Sat Nov 5 20:54:43 2016
> > > [0.00] SOC_ID_AMAZON_SE_* done!
> > > [0.00] SoC: Amazon_SE rev 1.3
> > > [0.00] bootconsole [early0] enabled
> > > [0.00] CPU0 revision is: 0001906c (MIPS 4KEc)
> > > [0.00] MIPS: machine is ALL0333CJ - Allnet ALL0333CJ DSL Modem
> > > [0.00] Determined physical RAM map:
> > > [0.00]  memory: 00518000 @ 2000 (usable)
> > > [0.00]  memory: 00136000 @ 0051a000 (usable after init)
> > > [0.00] Wasting 64 bytes for tracking 2 unused pages
> > >
> > > Has someone an idea?
> >
> > I guess I found the commit mentioned by john which removed the AMAZON
> > SE support [0] from the lantiq target. The obvious question that comes
> > in mind when having a look at this commit: Do you have enabled
> > CONFIG_SOC_AMAZON_SE in your kernel config? Not sure if it really
> > makes a difference since the config option seams to be only used by
> > target/linux/lantiq/patches-4.4/0008-MIPS-lantiq-backport-old-timer-code.patch
> > and not in the kernel at all.
> 
> Yes, CONFIG_SOC_AMAZON_SE=y is in my .config settings.
> I am trying now with cmdline settings like " ... mem=16M"
> 
> I will give feedback when done, I am also reading the patchset and try
> to get into this mips specific settings... what is when called, and so
> one...


Hui, giving mem=16M to the cmdline looks cool:


Bytes transferred = 2621444 (280004 hex)
AMAZON_SE # bootm 0x8050
Checking Images Integrity ...
  Kernel: OK
  Rootfs: OK
## Booting image at 8050 ...
   Image Name:   MIPS LEDE Linux-4.4.30
   Created:  2016-11-05  20:54:43 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:1227403 Bytes =  1.2 MB
   Load Address: 80002000
   Entry Point:  80002000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK

Starting kernel ...

[0.00] Linux version 4.4.30 (mcmilk@lap-00488) (gcc version 5.4.0 (LEDE 
GCC 5.4.0 r2084) ) #0 Sat Nov 5 20:54:43 2016
[0.00] SoC: Amazon_SE rev 1.3
[0.00] bootconsole [early0] enabled
[0.00] CPU0 revision is: 0001906c (MIPS 4KEc)
[0.00] MIPS: machine is ALL0333CJ - Allnet ALL0333CJ DSL Modem
[0.00] Determined physical RAM map:
[0.00]  memory: 003b1000 @ 2000 (usable)
[0.00]  memory: 0012d000 @ 003b3000 (usable after init)
[0.00] User-defined physical RAM map:
[0.00]  memory: 0100 @  (usable)
[0.00] Initrd not found or empty - disabling initrd
[0.00] Zone ranges:
[0.00]   Normal   [mem 0x-0x00ff]
[0.00] Movable zone start for each node
[0.00] Early memory node ranges
[0.00]   node   0: [mem 0x-0x00ff]
[0.00] Initmem setup node 0 [mem 0x-0x00ff]
[0.00] Built 1 zonelists in Zone order, mobility grouping off.  Total 
pages: 4064
[0.00] Kernel command line: console=ttyLTQ0,115200 
ethaddr=00:0F:C9:11:95:7B mem=16M panic=1 
[0.00] PID hash table entries: 64 (order: -4, 256 bytes)
[0.00] Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
[0.00] Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
[0.00] Memory: 10964K/16384K available (2997K kernel code, 138K rwdata, 
636K rodata, 1204K init, 206K bss, 5420K reserved, 0K cma-reserved)
[0.00] NR_IRQS:256
[0.00] CPU Clock: 266MHz
[0.00] clocksource: MIPS: mask: 0x max_cycles: 0x, 
max_idle_ns: 14334453388 ns
[0.42] sched_clock: 32 bits at 133MHz, resolution 7ns, wraps every 
16106127356ns
[0.008020] Calibrating delay loop... 264.70 BogoMIPS (lpj=529408)
[0.046985] pid_max: default: 32768 minimum: 301
[0.051956] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[0.058602] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[0.089118] clocksource: jiffies: mask: 0x max_cycles: 0x, 
max_idle_ns: 764504178510 ns
[0.098998] pinctrl core: initialized pinctrl subsystem
[0.107817] NET: Registered protocol family 16
[0.121973] cpuidle: using governor ladder
[0.126083] cpuidle: using governor menu
[0.142542] pinctrl-xway 1e100b10.pinmux: Init done
[0.150353] dma-xway 1e104100.dma: Init done - hw rev: 4, ports: 3, 
channels: 10
[0.242163] cl

Re: [LEDE-DEV] How do you develop (compile) LEDE efficiently?

2016-11-07 Thread Tino Reichardt
* Tino Reichardt  wrote:
> * Rafał Miłecki  wrote:
> > Hey,
> > 
> > So far I was always using my notebook for the development. My
> > requirements were Intel i7 quad core + AMD GPU. I was using some
> > Samsung but it's GPU has died and I can't replace it (stupid
> > 216-0811000 chipset).
> > 
> > I'm looking for a new notebook, but I can't find anything with i7 quad
> > core + AMD GPU. I may need to buy something with i7-6500U or i7-7500U
> > which may be too slow for compiling LEDE.

Hui, I just see you wanted to have an AMD GPU...
What about an "Ati Radeon HD 7700M (1GB)" ?

This one has i7-3720QM, 16GB RAM, ...
http://www.lapstore.de/a.php/shop/lapstore/lang/x/a/22741/kw/Dell-Precision-M4700
also about 750€


-- 
Best regards, TR

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


Re: [LEDE-DEV] [RFC] ADSL Modem Allnet All0333CJ Rev.C / Amazon-SE SoC

2016-11-12 Thread Tino Reichardt
* Mathias Kresin  wrote:
> 07.11.2016 19:02, Tino Reichardt:
> > Now I have to check, how to start the init...
> >
> > Is there currently any golden way, how the init should be done on these
> > devices, with very small flash memory?
> >
> > I also modify the .config, to fit the drivers of the allnet ;)
> 
> In menuconfig => "Target Images" you can select the ramdisk option.
> 
> This will create kernel + initramfs. The resulting binary can be loaded 
> with tftpboot and should boot to a prompt without relying on 
> flash/filesystem support.

Hm... hello Mathias, thanks for your reply, I have tried this and it
seems not to work currently. I have no idea why.

But I have prepared a small temporary site, which I will use for this
stuff ...

It contains the current patch against lede-project.git and some
logfiles with .config's of lede + linux kernel:

http://internethauptknotenpunkt.de/all0333/

The Amazon-SE code from kernel seems to work, I think it's my false
currently...

PS: And I found the reason, why I had to give mem=16M to the kernel
commandline, the amazonse.dtsi missed these definition:

+   memory@0 {
+   device_type = "memory";
+   };
+

-- 
Best regards, TR

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


Re: [LEDE-DEV] [RFC] ADSL Modem Allnet All0333CJ Rev.C / Amazon-SE SoC

2016-11-13 Thread Tino Reichardt
* Mathias Kresin  wrote:
> 07.11.2016 19:02, Tino Reichardt:
> > Now I have to check, how to start the init...
> >
> > Is there currently any golden way, how the init should be done on these
> > devices, with very small flash memory?
> >
> > I also modify the .config, to fit the drivers of the allnet ;)
> 
> In menuconfig => "Target Images" you can select the ramdisk option.
> 
> This will create kernel + initramfs. The resulting binary can be loaded 
> with tftpboot and should boot to a prompt without relying on 
> flash/filesystem support.
> 
> But not sure how far you already got. I guess the best would be to 
> publish your git tree somewhere so that one can point you to the missing 
> parts.

I have the LEDE Prompt now:
http://internethauptknotenpunkt.de/all0333/bootlog-init-initramfs.txt

The needed LEDE .config options where these:
CONFIG_TARGET_OPTIMIZATION="-Os -pipe -EB -march=4kec"

I will checkout the missing drivers, the NOR flash and the dsl firmware
now. So maybe in 1-2 weeks, the all033cj is a new amazon-se device in
the LEDE DevTree ;)

The Netgear DGN1000B could then also be added. So then


Off Topic: is the LEDE Wiki ready for device entries now?
There are nice Tables, but the real Davice Articles are linked to
OpenWRT... I would like to add a new Device directly to the LEDE Wiki...
please provide some stub for this. I could the add my current knowledge
about the all0333cj to this wiki entry...

-- 
Best regards, TR

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


Re: [LEDE-DEV] [OpenWrt-Devel] Any interest in adding runit to OpenWRT?

2016-12-03 Thread Tino Reichardt
* Rob Landley  wrote:
> On 12/03/2016 09:30 AM, Felix Fietkau wrote:
> > Hi Denys,
> > Here's the thing: OpenWrt/LEDE is starting services via procd.
> > This is a rather essential piece of how we're dealing with system-wide
> > reloading of configuration and automatically restarting/reloading only
> > services which are affected by configuration changes.
> > In comparison, dealing with logging is rather trivial.
> > 
> > Because of that, I think switching to runit is not a good trade-off.

It's not deleted. The main site is another site (wiki) now... thats the
reason.

An idea would be, to provide some small hint for the googlebot, to
switch to the new content via some "#REDIRECT" wiki command ...


-- 
Best regards, Tino

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


[LEDE-DEV] [PATCH] Lantiq Amazon-SE SoC / ADSL Modem Allnet All0333CJ Rev.C

2017-02-24 Thread Tino Reichardt
Hello,

some time ago I made an RFC for an dsl modem device with the Lantiq
Amazon-SE SoC. You can find it here:
http://lists.infradead.org/pipermail/lede-dev/2016-November/003818.html

I have finished this in december 2016, but wanted to do some testing...
this is not done until yet, but maybe others want to try amazon-se
targets as well.. so I post the current patch for review and finishing.

I have created a small homepage for the patch, it is located here:
https://mcmilk.de/projects/all0333cj/

And here is a github page with Amazon-SE Firmwares I have found in the
source code of allnet and netgear:
https://github.com/mcmilk/Amazon-SE-Firmware


Patch details: (patch is done with git diff, on current lede master)

target/linux/lantiq/Makefile
- added a new subtarget "ase" in Lantiq

lantiq/base-files/etc/board.d/01_leds + 02_network
- added the model ALL0333CJ for led stuff + mac addres from uboot
  environment

target/linux/lantiq/dts/amazonse.dtsi
- the amazonse.dtsi had some problems which are solved now:
1) the memory@0 section was not present
2) localbus@0 section was also not there
3) some irq's are not correct I think, but the current amazonse.dtsi
   works now... additional stuff could be done later

target/linux/generic/patches-4.4/308-mips32r2_tune.patch
- this patch adds cflags, which compiles code, which can not run on my
  device (is there a way for disabling this generic patch for my special
  mips target?)


If I should make a pull request via github, just tell me.



-- 
Best regards, TR
diff --git a/target/linux/generic/patches-4.4/308-mips32r2_tune.patch 
b/target/linux/generic/patches-4.4/308-mips32r2_tune.patch
deleted file mode 100644
index f4ab89ef28..00
--- a/target/linux/generic/patches-4.4/308-mips32r2_tune.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-Add -mtune=34kc to MIPS CFLAGS when building for mips32r2
-This provides a good tradeoff across at least 24Kc-74Kc, while also
-producing smaller code.
-
-Signed-off-by: Felix Fietkau 
-
 a/arch/mips/Makefile
-+++ b/arch/mips/Makefile
-@@ -145,7 +145,7 @@ cflags-$(CONFIG_CPU_R4X00) += -march=r46
- cflags-$(CONFIG_CPU_TX49XX)   += -march=r4600 -Wa,--trap
- cflags-$(CONFIG_CPU_MIPS32_R1)+= $(call 
cc-option,-march=mips32,-mips32 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \
-   -Wa,-mips32 -Wa,--trap
--cflags-$(CONFIG_CPU_MIPS32_R2)+= $(call 
cc-option,-march=mips32r2,-mips32r2 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \
-+cflags-$(CONFIG_CPU_MIPS32_R2)+= $(call cc-option,-march=mips32r2 
-mtune=34kc,-mips32r2 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \
-   -Wa,-mips32r2 -Wa,--trap
- cflags-$(CONFIG_CPU_MIPS32_R6)+= -march=mips32r6 -Wa,--trap
- cflags-$(CONFIG_CPU_MIPS64_R1)+= $(call 
cc-option,-march=mips64,-mips64 -U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS64) \
diff --git a/target/linux/lantiq/Makefile b/target/linux/lantiq/Makefile
index 3e4f48e7b1..3b89ca0c8f 100644
--- a/target/linux/lantiq/Makefile
+++ b/target/linux/lantiq/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 BOARD:=lantiq
 BOARDNAME:=Lantiq
 FEATURES:=squashfs
-SUBTARGETS:=xrx200 xway xway_legacy falcon
+SUBTARGETS:=ase falcon xrx200 xway xway_legacy
 MAINTAINER:=John Crispin 
 
 KERNEL_PATCHVER:=4.4
diff --git a/target/linux/lantiq/ase/config-default 
b/target/linux/lantiq/ase/config-default
new file mode 100644
index 00..11255f7b45
--- /dev/null
+++ b/target/linux/lantiq/ase/config-default
@@ -0,0 +1,32 @@
+CONFIG_ADM6996_PHY=y
+CONFIG_CC_OPTIMIZE_FOR_SIZE=y
+CONFIG_CRC16=y
+CONFIG_CRYPTO_DEFLATE=y
+CONFIG_CRYPTO_LZO=y
+CONFIG_DECOMPRESS_XZ=y
+# CONFIG_DEFAULT_DEADLINE is not set
+CONFIG_DEFAULT_IOSCHED="noop"
+CONFIG_DEFAULT_NOOP=y
+CONFIG_FIRMWARE_IN_KERNEL=y
+CONFIG_FIRMWARE_MEMMAP=y
+CONFIG_GPIO_GENERIC=y
+CONFIG_GPIO_GENERIC_PLATFORM=y
+CONFIG_IMAGE_CMDLINE_HACK=y
+# CONFIG_ISDN is not set
+CONFIG_JUMP_LABEL=y
+# CONFIG_LBDAF is not set
+CONFIG_LEDS_TRIGGER_HEARTBEAT=y
+CONFIG_LZO_COMPRESS=y
+CONFIG_LZO_DECOMPRESS=y
+CONFIG_MIPS_FPU_EMULATOR=y
+# CONFIG_PSB6970_PHY is not set
+CONFIG_RD_XZ=y
+# CONFIG_RTL8366_SMI is not set
+CONFIG_SOC_AMAZON_SE=y
+# CONFIG_SOC_XWAY is not set
+# CONFIG_SPI is not set
+CONFIG_USB_SUPPORT=y
+# CONFIG_WIRELESS is not set
+# CONFIG_WLAN is not set
+CONFIG_ZLIB_DEFLATE=y
+CONFIG_ZLIB_INFLATE=y
diff --git a/target/linux/lantiq/ase/profiles/00-default.mk 
b/target/linux/lantiq/ase/profiles/00-default.mk
new file mode 100644
index 00..26bc8b502b
--- /dev/null
+++ b/target/linux/lantiq/ase/profiles/00-default.mk
@@ -0,0 +1,9 @@
+define Profile/Default
+   NAME:=Default Profile
+   PRIORITY:=1
+endef
+
+define Profile/Default/Description
+   Default package set compatible with most boards.
+endef
+$(eval $(call Profile,Default))
diff --git a/target/linux/lantiq/ase/target.mk 
b/target/linux/lantiq/ase/target.mk
new file mode 100644
index 00..28694e6d44
--- /dev/null
+++ b/target/linux/lantiq/ase/target.mk
@@ -0,0 +1

Re: [LEDE-DEV] [PATCH] Lantiq Amazon-SE SoC / ADSL Modem Allnet All0333CJ Rev.C

2017-02-24 Thread Tino Reichardt
I made a pull request for it:
https://github.com/lede-project/source/pull/877



-- 
Best regards, TR

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


Re: [LEDE-DEV] [PATCH] Lantiq Amazon-SE SoC / ADSL Modem Allnet All0333CJ Rev.C

2017-02-24 Thread Tino Reichardt
* Bastian Bittorf  wrote:
> * Tino Reichardt  [24.02.2017 13:30]:
> > I have created a small homepage for the patch, it is located here:
> > https://mcmilk.de/projects/all0333cj/
> 
> the only way flashing it, is using a serial line?

Currently yes, this modem has also an hiffen webinterface, maybe there
is a possibility to update the firmware. But most stuff in this
webinterface seems unstable, thats may be the reason, why it is hidden.

Hidden Webinterface on default Firmware: http://172.16.1.254:8235/, with
user "admin" and password: "coolwhite"

Telnet on Port 23 is also there. I will check, if it can be upgraded via
telnet or webinterface.


-- 
Best regards, TR

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


Re: [LEDE-DEV] [PATCH] Lantiq Amazon-SE SoC / ADSL Modem Allnet All0333CJ Rev.C

2017-03-05 Thread Tino Reichardt
* Bastian Bittorf  wrote:
> * Tino Reichardt  [24.02.2017 16:26]:
> > Telnet on Port 23 is also there. I will check, if it can be upgraded via
> > telnet or webinterface.
> 
> user: root
> pass: admin

I found a way of flashing the device with telnet / tftp only. So there
is no more requirentment for the serial port.

I will add the instractions to my patch... and append them below.

> # cat /proc/mtd
> dev:size   erasesize  name
> mtd0: 0001 2000 "U-Boot"
> mtd1: 003f 0001 "RootFS,Kernel,Data,Environment"
> 
> there is an interesting binary:
> 
> # upgrade --help
> Usage : upgrade file_name image_type expand_direction saveenv_copy

This binary is not really usefull. It depends on some unknown format.

I am using tftp + flashwrite + fw_setenv. I have done some extra github
repo for the tools. I needed to compile them statically and other users
will have issues compiling there own binaries for that - I think.

Repo is here: https://github.com/mcmilk/uboot-utils

This is a summary of flashing via tftp:

# your own host must have an tftpd daemon, then do this:
ifconfig eth0:172 172.16.1.1 up

# telnet to allnet, root:admin
telnet 172.16.1.254

The following commands should be run on the Allnet Modem:

# kill this daemon, it spams your telnet console
killall dsl_cpe_control

# change to some place in ram:
cd /ramdisk/tftp_upload

# uImage should be your lede-lantiq-ase-ALL0333CJ-squashfs-sysupgrade.bin
tftp -g -r uImage 172.16.1.1

# https://github.com/mcmilk/uboot-utils/releases/download/0.1/mips32.tar.gz
# load these tools from your tftpd via:
tftp -g -r flashwrite 172.16.1.1
tftp -g -r fw_setenv 172.16.1.1
tftp -g -r fw.conf 172.16.1.1
ln -s fw_setenv fw_printenv
chmod +x *

# changing this variable is important, or LEDE will not boot:
./fw_setenv disable_recovery y

# this is also needed:
./fw_setenv kernel_addr 0xb001

# this will flash LEDE into the right address from fw.conf
./flashwrite /dev/mtd/1 uImage 0


BE AWARE:
My patch seems to work fine, even the dsl modem seems to be correctly
loaded. But it's not tested currently... so please do not flash your
modems, when they are needed currently ;)

-- 
Best regards, TR

___
Lede-dev mailing list
Lede-dev@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/lede-dev


Re: [LEDE-DEV] [PATCH] Lantiq Amazon-SE SoC / ADSL Modem Allnet All0333CJ Rev.C

2017-03-07 Thread Tino Reichardt
* Bastian Bittorf  wrote:
> * Bastian Bittorf  [07.03.2017 11:07]:
> > * Tino Reichardt  [06.03.2017 08:24]:
> > > BE AWARE:
> > > My patch seems to work fine, even the dsl modem seems to be correctly
> > > loaded. But it's not tested currently... so please do not flash your
> > > modems, when they are needed currently ;)
> > 
> > Impressive! i will check if pppoe works later and report.
> 
> it seems, that the modem is not initialised correctly,
> there is e.g. no blinking of the led and 'nas0' will not
> come up and so no pppoe...if somebody has an idea, i can test.

This is my current bootlog:

[...]
[0.531727] 0x0001-0x003ff200 : "firmware"
[0.555144] 2 uimage-fw partitions found on MTD device firmware
[0.559815] 0x0001-0x00110874 : "kernel"
[0.571102] 0x00110874-0x003ff200 : "rootfs"
[0.582522] mtd: device 3 (rootfs) set to be root filesystem
[0.586987] 1 squashfs-split partitions found on MTD device rootfs
[0.593060] 0x002d-0x003f : "rootfs_data"
[0.606262] 0x003ff200-0x003ffe00 : "uboot_env"
[0.618026] 0x003ffe00-0x0040 : "dummy_rootfs"
[0.631843] Selected EPHY mode
[0.634260] etop: invalid MAC, using random
[0.648022] libphy: ltq_mii: probed
[0.650592] eth0: attached PHY [Generic PHY] (phy_addr=1e18.etop-ff:08, 
irq=-1)
[0.662138] wdt 1f8803f0.watchdog: Init done
[0.670421] NET: Registered protocol family 17
[0.673865] bridge: automatic filtering via arp/ip/ip6tables has been 
deprecated. Update your scripts to load br_netfilter if you need this.
[0.686115] 8021q: 802.1Q VLAN Support v1.8
[0.723045] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[0.735002] Freeing unused kernel memory: 1200K (80314000 - 8044)
[3.127473] init: Console is alive
[3.130483] init: - watchdog -
[3.859264] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[4.063814] kmodloader: done loading kernel modules from 
/etc/modules-boot.d/*
[4.080946] init: - preinit -
[8.068482] jffs2: notice: (277) jffs2_build_xattr_subsystem: complete 
building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 
dead, 0 orphan) found.
[8.087572] mount_root: switching to jffs2 overlay
[8.152790] urandom-seed: Seeding with /etc/urandom.seed
[8.716110] procd: - early -
[8.718146] procd: - watchdog -
[9.593213] procd: - ubus -
[9.961355] random: ubusd: uninitialized urandom read (4 bytes read, 39 bits 
of entropy available)
[9.972503] random: ubusd: uninitialized urandom read (4 bytes read, 39 bits 
of entropy available)
[9.981601] random: ubusd: uninitialized urandom read (4 bytes read, 39 bits 
of entropy available)
[9.989488] random: ubusd: uninitialized urandom read (4 bytes read, 39 bits 
of entropy available)
[9.19] random: ubusd: uninitialized urandom read (4 bytes read, 39 bits 
of entropy available)
[   10.007788] random: ubusd: uninitialized urandom read (4 bytes read, 39 bits 
of entropy available)
[   10.019285] random: ubusd: uninitialized urandom read (4 bytes read, 39 bits 
of entropy available)
[   10.028188] random: ubusd: uninitialized urandom read (4 bytes read, 39 bits 
of entropy available)
[   10.038213] procd: - init -
[   11.040310] kmodloader: loading kernel modules from /etc/modules.d/*
[   11.055903] NET: Registered protocol family 8
[   11.058993] NET: Registered protocol family 20
[   11.075693] IFX MEI Version 5.00.00
[   11.099774] Infineon CPE API Driver version: DSL CPE API V3.24.4.4
[   11.128356] ATM1.0.26ATM (A1) firmware version 0.16
[   11.132296] ifxmips_atm: ATM init succeed
[   11.330351] nf_conntrack version 0.5.0 (200 buckets, 800 max)
[   11.466418] xt_time: kernel timezone is -
[   11.475272] ip_tables: (C) 2000-2006 Netfilter Core Team
[   11.506448] PPP generic driver version 2.4.2
[   11.517892] NET: Registered protocol family 24
[   11.531936] kmodloader: done loading kernel modules from /etc/modules.d/*
[   11.628832] random: ubusd: uninitialized urandom read (4 bytes read, 46 bits 
of entropy available)
[   11.637421] random: ubus: uninitialized urandom read (4 bytes read, 46 bits 
of entropy available)
[   24.951827] [DSL_BSP_FWDownload 1615]: 
[   25.125895] [IFX_MEI_DFEMemoryAlloc 1498]: image_size = 322840
[   25.183263] [DSL_BSP_FWDownload 1683]: -> IFX_MEI_BarUpdate()
[   25.404145] [DSL_BSP_FWDownload 1615]: 
[   25.428137] [DSL_BSP_FWDownload 1615]: 
[   25.647045] [DSL_BSP_FWDownload 1615]: 
[   25.659983] [DSL_BSP_FWDownload 1615]: 
[   25.666015] [IFX_MEI_Ioctls 2560]: DSL_FIO_BSP_DSL_START
[   25.670095] [IFX_MEI_RunAdslModem 1318]: allocate 32KB swap buff memory at: 
0x807c
[   25.927207] [IFX_MEI_IrqHandle 1856]: Got MODEM_READY_MSG
[   25.931446] [IFX_MEI_I