You can use padavan-ng proect.
Where uboot source and asus rt-ac51u profile.
Simply copy file .config
from profile dir into uboot source dir and run make menuconfig
than make
.
Pls pay attention that memory size in megabits so 512Mbits = 64Mbyte.
Or you can try precompiled bootloader breed.
make menuconfig ask me location of Cross Compiler.
now says
Cross Compiler Path: "/opt/buildroot-gcc342/bin"
But i do not find opt
There are on PADVAN sources ?
I think i have in on the OPENWRT toolchain, but i do not find it.
Use this toolchain for mt7620 uboot building.
RAM is MT47H16M16
256Mbit
But is 16 bit
Then Datasheet Says 16Mbyte
But menù are on Mbit
And About Bus frequency, i do not find it
There are This:
I can only change divisor ? I try divided /4 ?
(RAM) Ram/Rom version
(CONF) CPU PLL source
(29) PLL_MULTI_RATIO conf
(2) PLL_DIV_RATIO conf
(7) SSC conf (CPLL_CFG0[4:9])
[] USB Recovery
[] Partition LAN/WAN
(W/LLLL) LAN/WAN Board Layout
[ ] Enable all Ethernet PHY
I suggest to set 256Mbit memory size an don't touch other parameters first.
my first problem is bus RAM speed.
193Mhz is to much for this Layout and do not Work.
/bin/sh: 1: ~/buildroot-gcc342/bin/mipsel-linux-gcc: not found
/home/gevagiorgio/padavan-ng-master/uboot/mips/uboot-5.x.x.x/config.mk:826: recipe for target 'cpu/ralink_soc/start.o' failed
make: *** [cpu/ralink_soc/start.o] Error 127
gevagiorgio@PC-Ufficio:~/padavan-ng-master/uboot/mips/uboot-5.x.x.x$ cd ~/buildroot-gcc342/bin/
gevagiorgio@PC-Ufficio:~/buildroot-gcc342/bin$ ls
lzma_alone mipsel-linux-g++ mipsel-linux-objdump mipsel-linux-uclibc-as mipsel-linux-uclibc-gccbug mipsel-linux-uclibc-size
mipsel-linux-addr2line mipsel-linux-gcc mipsel-linux-ranlib mipsel-linux-uclibc-c++ mipsel-linux-uclibc-gcov mipsel-linux-uclibc-strings
mipsel-linux-ar mipsel-linux-gcc-3.4.2 mipsel-linux-readelf mipsel-linux-uclibc-cc mipsel-linux-uclibc-ld mipsel-linux-uclibc-strip
mipsel-linux-as mipsel-linux-gccbug mipsel-linux-size mipsel-linux-uclibc-c++filt mipsel-linux-uclibc-nm mksquashfs_lzma-3.0
mipsel-linux-c++ mipsel-linux-gcov mipsel-linux-strings mipsel-linux-uclibc-cpp mipsel-linux-uclibc-objcopy mksquashfs_lzma-3.2
mipsel-linux-cc mipsel-linux-ld mipsel-linux-strip mipsel-linux-uclibc-g++ mipsel-linux-uclibc-objdump unsquashfs
mipsel-linux-c++filt mipsel-linux-nm mipsel-linux-uclibc-addr2line mipsel-linux-uclibc-gcc mipsel-linux-uclibc-ranlib
mipsel-linux-cpp mipsel-linux-objcopy mipsel-linux-uclibc-ar mipsel-linux-uclibc-gcc-3.4.2 mipsel-linux-uclibc-readelf
See CPU_SYS_CLKCFG: CPU and SYS Clock Control (offset: 0x003C) in mt7620 specs.
Is ~/buildroot-gcc342/bin/**mipsel-linux-gcc
runable? Install 32-bit compatibility library for your linux dist
./mipsel-linux-gcc
-bash: ./mipsel-linux-gcc: cannot execute binary file: Exec format error
It is not compiler for PC
But i have OpenWrt installed.
Can i use Cross Compiler of OpenWrt ?
Do you know location ?
mipsel-linux-gcc
is i386 32bit application. If your OS is 64bit you need to install support for 32bit applications.
I have Ubuntu 16.04.7 LTS -> On Windows 10
sudo dpkg --add-architecture i386
there is no answer
sudo echo "foreign-architecture i386" > /etc/dpkg/dpkg.cfg.d/multiarch
-bash: /etc/dpkg/dpkg.cfg.d/multiarch: Permission denied
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
ok
sudo apt-get install multiarch-support
ok
./mipsel-linux-gcc
-bash: ./mipsel-linux-gcc: cannot execute binary file: Exec format error
I don't use windows 10 but in Ubuntu 16.04 was enough to run (as root)
dpkg --add-architecture i386
apt-get update
apt-get install libc6:i386 libstdc++6:i386
Can you show output of command
file ./mipsel-linux-gcc
file ./mipsel-linux-gcc
./mipsel-linux-gcc: symbolic link to mipsel-linux-uclibc-gcc
sudo su
root@PC-Ufficio:/home/gevagiorgio/buildroot-gcc342/bin# dpkg --add-architecture i386
root@PC-Ufficio:/home/gevagiorgio/buildroot-gcc342/bin# apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:3 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Get:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Fetched 325 kB in 2s (135 kB/s)
Reading package lists... Done
root@PC-Ufficio:/home/gevagiorgio/buildroot-gcc342/bin# apt-get install libc6:i386 libstdc++6:i386
Reading package lists... Done
Building dependency tree
Reading state information... Done
libc6:i386 is already the newest version (2.23-0ubuntu11.2).
libstdc++6:i386 is already the newest version (5.4.0-6ubuntu1~16.04.12).
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
root@PC-Ufficio:/home/gevagiorgio/buildroot-gcc342/bin#
./mipsel-linux-gcc
-bash: ./mipsel-linux-gcc: cannot execute binary file: Exec format error
Broken link? Show
file mipsel-linux-uclibc-gcc
file mipsel-linux-uclibc-gcc
mipsel-linux-uclibc-gcc: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 2.4.1, stripped
./mipsel-linux-uclibc-gcc
-bash: ./mipsel-linux-uclibc-gcc: cannot execute binary file: Exec format error
It's a problem of WSL
See Run 32-bit application on Ubuntu on Windows subsystem for Linux for details.
Now I have WSL2.
Maybe now i can build.
./mipsel-linux-gcc do not give me error.
Thank you for your patience Serge.
The register you say to me, seems to be only for the speed of the CPU clock and not the DDR2 bus
On menuconfig there are:
CP_PLL sources
PLL_MULTI_RATIO
PLL_DIV_RATIO conf
SSC conf (CPLL_CFG0[4:9])
There is no correspondence between the names in make menuconfig and datasheets.
http://download.villagetelco.org/hardware/MT7620/MT7620_ProgrammingGuide.pdf
I must reduce by 50% the clock of DDR2