Comments (31)
if i do tfpboot 0x80800000 kernel-lzma
i get it into ram but bootm 0x80800000 does nothing without any error
from u-boot_mod.
Hello mylegacy,
Ad 1. It's not possible on TP-Link routers without reserve additional block for environment variables. If you need this, you will have to do it yourself.
Ad 2. I will add this command later.
Ad 3. There is "reset" command.
Ad 4. Have you tried different addresses? Please, post full log from console.
Regards
from u-boot_mod.
1 why don't you implement it ?
4 has no errors or reply, nothing
which addresses could be reasonable instead of 0x8080.0000 ?
from u-boot_mod.
the original firmware has no reset
u-boot> help
reset - Perform RESET of the CPU
? - alias for 'help'
bootm - boot application image from memory
cp - memory copy
erase - erase FLASH memory
go - start application at address 'addr'
help - print online help
md - memory display
mm - memory modify (auto-incrementing)
mtest - simple RAM test
mw - memory write (fill)
nm - memory modify (constant address)
printenv- print environment variables
progmac - Set ethernet MAC addresses
setenv - set environment variables
tftpboot- boot image via network using TFTP protocol
version - print monitor version
u-boot> reset
Unknown command 'reset' - try 'help'
u-boot>
how have you fixed it ?
from u-boot_mod.
1 why don't you implement it ?
Because all firmwares (OpenWrt, Gargoyle, OFW, etc.) support only original mtd layout, which doesn't include partition for environment variables. It means that you will need to prepare custom firmware build, to use 703N with writable U-Boot environment (stored for example in third 64 KB block). There is also other way - you can put environment variables in smaller block (4 or 32 KB) and store it in second 64 KB block of the FLASH where TP-Link stores additional data like MAC and model number. I will think about that.
4 has no errors or reply, nothing
Post full log, from power up.
u-boot> reset
Unknown command 'reset' - try 'help'
u-boot>how have you fixed it ?
I know about this issue/bug/problem. It exist on almost every TP-Link devices which I had. In my modification, the "reset" command works.
from u-boot_mod.
i added go and echo
i have this other issue
-
U-Boot 1.1.4 (Oct 31 2013) *
AP121 (AR9331) U-Boot for TL-WR703N
DRAM: 32 MB
FLASH: Unknown type (using only 4 MB)
Please, send request to add support
for your flash - JEDEC ID: 0xC22014
from u-boot_mod.
Please, send request to add support
for your flash - JEDEC ID: 0xC22014
What type of FLASH do you have in 703N? Is it a Macronix (MXIC) MX25L80?
In my modification FLASH type is recognized by JEDEC ID: https://github.com/pepe2k/u-boot_mod/blob/master/u-boot/board/ar7240/common/ar7240_flash.c#L95. Your FLASH isn't supported yet.
Regards
from u-boot_mod.
yes, it's MX25L8005PC-15G, DIP8 version.
from u-boot_mod.
i have changed a lot of code in order to bootstrap from tftp
it seems there is something wrong about this:
Link down: eth0
Link down: eth1
sometimes it works the first time (link is up), sometimes it does not (link is down) and the firmware needs to re-initialize the ethernet board -> causing tftpboot command to be aborted and retried later
also the mac address is not set correctly when the linux kernel starts, i fixed the problem passing the mac address as parameter
from u-boot_mod.
it seems there is something wrong about this:
Link down: eth0
Link down: eth1sometimes it works the first time (link is up), sometimes it does not (link is down) and the firmware needs to re-initialize the ethernet board -> causing tftpboot command to be aborted and retried later
Ethernet won't start if you don't have cable connection with working device on the other side.
also the mac address is not set correctly when the linux kernel starts, i fixed the problem passing the mac address as parameter
If your kernel needs MAC address to be passed in parameter... you need to do this yourself. OpenWrt kernel reads MAC address directly from FLASH.
from u-boot_mod.
Ethernet won't start EVEN if you i have cable connection with working device on the other side! And it happens sometimes! So it may be it is a bug
my 703 boots from the net, there is ALWAYS a cable connected and a working tftpboot server on the other side!
If your kernel needs MAC address to be passed in parameter... you need to do this yourself. OpenWrt kernel reads >MAC address directly from FLASH.
are you sure about this ? in the linux 2.6.29 with OpenWrt patches i can't find nothing similar, so i am passing the mac address manually: where should be the line where the linux kernel access the flash to get the mac address ?
btw i did the hack and it is running, i am just reporting you as suggest about what you should care.
from u-boot_mod.
Ethernet won't start EVEN if you i have cable connection with working device on the other side! And it happens sometimes! So it may be it is a bug
OK, but I can't confirm that. I have a lot of device with my modification and I didn't have this problem. And information like "it happens sometimes! So it may be it is a bug" is no information! Not enough data...
are you sure about this ? in the linux 2.6.29 with OpenWrt patches i can't find nothing similar, so i am passing the mac address manually: where should be the line where the linux kernel access the flash to get the mac address ?
You are using old kernel version, so you need to check what it needs.
btw i did the hack and it is running, i am just reporting you as suggest about what you should care.
I know what I should care about. You are using custom firmware, so you need custom changes which I don't want to include in my modification.
yes, it's MX25L8005PC-15G, DIP8 version.
I won't add support for FLASH in DIP case version.
from u-boot_mod.
what can i say about "link down" ? It happens sometimes, how could i investigate ? I am just trying to understand which part of uboot is involved or may be involved in this issue. Unfortunately the wr703n has no jtag, so i can't say nothing more than "it happens", and it happens with your firmware, too. My firmware is based on yours, and i have 3 703 boards where it is happening with a frequency of 1/5 -> if i boot the board 5 times, it may be i have 4 success and 1 failure -> i changed the common/main.c in order to have 4 retries about tftp-auto-boot, this is a workaround which makes my board pretty alive from the net boot.
exactly where in the new linux kernel (3.* ?) is used to access the flash in order to get the mac address ? It is simply ugly! I have added "macaddress" in the uboot environment in order to put the mac address into the shared parameters passed through the RAM to the kernel!
now i am adding the saveenv feature, this way uboot will load everything about the environment from its custom area, instead of having everything built-in.
from u-boot_mod.
what can i say about "link down" ? It happens sometimes, how could i investigate ? I am just trying to understand which part of uboot is involved or may be involved in this issue. Unfortunately the wr703n has no jtag, so i can't say nothing more than "it happens", and it happens with your firmware, too. My firmware is based on yours, and i have 3 703 boards where it is happening with a frequency of 1/5 -> if i boot the board 5 times, it may be i have 4 success and 1 failure -> i changed the common/main.c in order to have 4 retries about tftp-auto-boot, this is a workaround which makes my board pretty alive from the net boot.
Take a look at:
https://github.com/pepe2k/u-boot_mod/blob/master/u-boot/board/ar7240/common/ar7240_s26_phy.c
There are (in most of the files) a lot of options to debug without JTAG, using "printf()" and UART console :)
exactly where in the new linux kernel (3.* ?) is used to access the flash in order to get the mac address ? It is simply ugly! I have added "macaddress" in the uboot environment in order to put the mac address into the shared parameters passed through the RAM to the kernel!
now i am adding the saveenv feature, this way uboot will load everything about the environment from its custom area, instead of having everything built-in.
You don't need to "add" it... just config and turn it on, it's already there. Carambola 2 has writable environment and is supported in my modification.
If you make changes which could allow to use 64 KB block for erase command at the same time with environment stored in 4~32 KB block, please publish your code changes and maybe I will include them. Or maybe I will do it myself one day.
from u-boot_mod.
hi
i have issues trying to use the wifi module with ar9331, i don't know
exactly which kernel module is involved and if the flash has to be used to
load any configuration/sets for the wifi module
do you know anything about the linux kernel side ? i have everything
working except the wifi module.
could you provide my throughout email a full flash image of the firmware
(uboot + kernel + rootfs) of a working linux/wifi on wr703 system ?
regards
2013/11/4 Piotr Dymacz [email protected]
what can i say about "link down" ? It happens sometimes, how could i
investigate ? I am just trying to understand which part of uboot is
involved or may be involved in this issue. Unfortunately the wr703n has no
jtag, so i can't say nothing more than "it happens", and it happens with
your firmware, too. My firmware is based on yours, and i have 3 703 boards
where it is happening with a frequency of 1/5 -> if i boot the board 5
times, it may be i have 4 success and 1 failure -> i changed the
common/main.c in order to have 4 retries about tftp-auto-boot, this is a
workaround which makes my board pretty alive from the net boot.Take a look at:
https://github.com/pepe2k/u-boot_mod/blob/master/u-boot/board/ar7240/common/ar7240_s26_phy.c
There are (in most of the files) a lot of options to debug without JTAG,
using "printf()" and UART console :)exactly where in the new linux kernel (3.* ?) is used to access the flash
in order to get the mac address ? It is simply ugly! I have added
"macaddress" in the uboot environment in order to put the mac address into
the shared parameters passed through the RAM to the kernel!now i am adding the saveenv feature, this way uboot will load everything
about the environment from its custom area, instead of having everything
built-in.You don't need to "add" it... just config and turn it on, it's already
there. Carambola 2 has writable environment and is supported in my
modification.If you make changes which could allow to use 64 KB block for erase command
at the same time with environment stored in 4~32 KB block, please publish
your code changes and maybe I will include them. Or maybe I will do it
myself one day.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/13#issuecomment-27689518
.
from u-boot_mod.
Hello,
Your problem isn't related to this project.
You should take a look at OpenWrt sources.
Regards
from u-boot_mod.
yes it is not related, but may be you can not something about the wifi, i
find difficulties with OpenWrt sources, also … have you got a working wifi
module in 703 ? if yes, could you send me the whole flash image ?
2013/11/19 Piotr Dymacz [email protected]
Hello,
Your problem isn't related to this project.
You should take a look at OpenWrt sources.Regards
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/13#issuecomment-28809502
.
from u-boot_mod.
Hi..
Today I installed your uboot in my tp link wr740n v4.27 . And it work fine..
Many thanks. ...pepe2k
-------- Original message --------
From: mylegacy [email protected]
Date: 19/11/2013 10:42 PM (GMT+05:30)
To: pepe2k/u-boot_mod [email protected]
Subject: Re: [u-boot_mod] new features for 703 (#13)
yes it is not related, but may be you can not something about the wifi, i
find difficulties with OpenWrt sources, also … have you got a working wifi
module in 703 ? if yes, could you send me the whole flash image ?
2013/11/19 Piotr Dymacz [email protected]
Hello,
Your problem isn't related to this project.
You should take a look at OpenWrt sources.Regards
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/13#issuecomment-28809502
.—
Reply to this email directly or view it on GitHub.
from u-boot_mod.
Hello,
Today I installed your uboot in my tp link wr740n v4.27 . And it work fine.. Many thanks. ...pepe2k
You're welcome :)
yes it is not related, but may be you can not something about the wifi, i find difficulties with OpenWrt sources, also … have you got a working wifi module in 703 ? if yes, could you send me the whole flash image ?
I'm using only OpenWrt based firmware on WR703N and other devices with AR933x SoCs.
Regards
from u-boot_mod.
yes, but could you provide me the whole image of flash ? i can't use the
block erase on my flash, it is not working, so i need the whole image in
order to put it on the flash with the usb-flash programmer
2013/11/19 Piotr Dymacz [email protected]
Hello,
Today I installed your uboot in my tp link wr740n v4.27 . And it work
fine.. Many thanks. ...pepe2kYou're welcome :)
yes it is not related, but may be you can not something about the wifi, i
find difficulties with OpenWrt sources, also … have you got a working wifi
module in 703 ? if yes, could you send me the whole flash image ?I'm using only OpenWrt based firmware on WR703N and other devices with
AR933x SoCs.Regards
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/13#issuecomment-28813247
.
from u-boot_mod.
yes, but could you provide me the whole image of flash ? i can't use the block erase on my flash, it is not working, so i need the whole image in order to put it on the flash with the usb-flash programmer
I don't have access to any WR703N now and probably you don't want to use ART data from other device - their are unique (refer to: https://forum.openwrt.org/viewtopic.php?pid=182669#p182669).
Regards
from u-boot_mod.
could you access a 703 and send an image, please ? i have no ART slice here.
2013/11/19 Piotr Dymacz [email protected]
yes, but could you provide me the whole image of flash ? i can't use the
block erase on my flash, it is not working, so i need the whole image in
order to put it on the flash with the usb-flash programmerI don't have access to any WR703N now and probably you don't want to use
ART data from other device - their are unique (refer to:
https://forum.openwrt.org/viewtopic.php?pid=182669#p182669).Regards
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/13#issuecomment-28814255
.
from u-boot_mod.
"I don't have access..." means I don't have WR703N.
Regards
from u-boot_mod.
Hello,
Here are ART data from 4 different WR703N: http://www.tech-blog.pl/pliki/703n_art.zip
Regards
from u-boot_mod.
Hi,,
I have one question.
After upgrading your new uboot,
We can upload new image of opwnwrt without needing of serial port.
so there is no use of serial terminal.
Is it possible to desable serial terminal, and then use seial port to communicate with other controller? ????????
-------- Original message --------
From: Piotr Dymacz [email protected]
Date: 21/11/2013 2:56 AM (GMT+05:30)
To: pepe2k/u-boot_mod [email protected]
Cc: almightytech [email protected]
Subject: Re: [u-boot_mod] new features for 703 (#13)
Hello,
Here are ART data from 4 different WR703N: http://www.tech-blog.pl/pliki/703n_art.zip
Regards
—
Reply to this email directly or view it on GitHub.
from u-boot_mod.
Hello almightytech,
Your question isn't related to the topic in this issue, so please - post your question as a new issue.
I will then answer you (with instruction how to achieve what you need).
Regards!
from u-boot_mod.
hi
the problem is not the serial port, the problem is the flash, i am using a
not well supported flash so i am not able to refash it onboard, i need to
put the DIP8 chip into an external usb-flash programmer.
2013/11/21 almightytech [email protected]
Hi,,
I have one question.
After upgrading your new uboot,
We can upload new image of opwnwrt without needing of serial port.so there is no use of serial terminal.
Is it possible to desable serial terminal, and then use seial port to
communicate with other controller? ????????-------- Original message --------
From: Piotr Dymacz [email protected]
Date: 21/11/2013 2:56 AM (GMT+05:30)
To: pepe2k/u-boot_mod [email protected]
Cc: almightytech [email protected]
Subject: Re: [u-boot_mod] new features for 703 (#13)Hello,
Here are ART data from 4 different WR703N:
http://www.tech-blog.pl/pliki/703n_art.zipRegards
—
Reply to this email directly or view it on GitHub.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/13#issuecomment-28961833
.
from u-boot_mod.
Hello,
So buy other FLASH which is supported.
Regards
from u-boot_mod.
in DIP8 package ?
the idea is to support the one i am using, which is DIP8 package, i'd like
to extract and replace it, just cause i am also developing baseboard
firmware which may fail to bootstrap
anyway, i found the issues about the wifi module: it is not supported in
the kernel tree, it is an external package from openwrt, so i added it in
my builder chain and it seems to be working
now i have just to fix up the radio calibration part =P
2013/11/21 Piotr Dymacz [email protected]
Hello,
So buy other FLASH which is supported.
Regards
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/13#issuecomment-28984923
.
from u-boot_mod.
the idea is to support the one i am using, which is DIP8 package
So you need to add support for it.
from u-boot_mod.
i am still working on it
2014-09-08 3:42 GMT+02:00 Piotr Dymacz [email protected]:
—
Reply to this email directly or view it on GitHub
#13 (comment).
from u-boot_mod.
Related Issues (20)
- uboot mod for Huawei B5328 HOT 10
- Mark Zbtlink ZBT-WE1526 image compatible with ZBT-WE2226
- bootloader stuck at reboot (Dragino) HOT 3
- support for ZBT WE826-Q HOT 1
- can't compile u-boot HOT 1
- MR3020 and 128kb u-boot image HOT 1
- no 955x.h 933x.h 934x.h found?
- support tp archer c7 qca9558 + ar8327n?
- if I hard-mod flash to 16MiB should I change this uboot? HOT 4
- Update u-boot HOT 9
- whether ar7242 support? HOT 2
- recovering from bad u-boot flash on Carambola 2 HOT 1
- u-boot for ZyXEL NBG6716 HOT 2
- Add improvements? HOT 1
- Does u-boot_mod can help me to revert to stock tp-link firmware? HOT 1
- MDIO_Busy Error after board revise HOT 3
- Caraboot 2.10 introduces startup fix to Carambola2 HOT 4
- Unbrick WR841N after wrong u-boot-flash HOT 4
- Firmware uploading is interrupted randomly by some packets HOT 4
- Your ftp server is down HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from u-boot_mod.