How to stop get random mac on every boot? Because my provider want me to have static MAC to enter network and then I need to get DHCP IP address.
I have these lines in /etc/network/interfaces
auto wan
allow-hotplug wan
iface wan inet dhcp
hwaddress ether 6c:3b:6b:48:b7:8c
but problem is that it try to obtain IP from DHCP before these lines applied and of course no internet connection until I manually ssh to box and run - dhclient wan. After it - all goes well.
this file is an example for devicetree-overlay, but you have to configure uboot to use separate dts and this overlay which is not trivial, so as a start just change the dts itself which is the easiest way
Yes, compiled on x86 linux and booted success. Also found that your kernel lacks some module to get pptp vpn to work - ppp_async so edited .config file and recompiled it again. May be you can put this in your debian buster distro by default?
Also interesting for which purposes - eth0/eth1? First I was think I can give eth0 local IP and all lanX interfaces will reply to this IP… but no… was make br0 and put all lanX interfaces to it…
just say me the config-options needed…i don’t wanted an all-yes-config so i activated only the options needed by me and the people reported options to me. but this is kernel-related, not image-related.
eth0/eth1 are the (internal) cpu-ports between SOC and Switch, lanX/wan are the (physical/external) dsa-ports of the switch where you put your rj45-jack in. CPU-POrts have to only be set “up” without any other config. IP-configuration has to be done on dsa-ports (lanx). if all lan-ports need to be in same lan-segment, they have to be bridged and get 1 IP-address. if you use different lan-segments (like me) you can give any lan-port another IP-adress
Yes, need all lan ports to be in one network like other router this do out-of-box. I don’t ask about all-yes but CONFIG_SOME_MODULE=m - will be great and slim and don’t need to waste hour time to google - what the heck is logs says and found that it need module that not present…
p.s. also found if I choose deb package on kernel compile - it give kernel wrong names. If I choose pack - all names correct.
everybody needs another “some_module” and figuring out which module can be needed by somebody and its depencies will waste my time it is a basic kernel where everyone can add stuff he needs and maybe tell me what’s needed additional to it. but i don’t want to add modules/builtin-function nobody needs
for naming-issue you mean the file of deb/tar.gz? or inside the file?
deb is designed to install multiple kernels so the uImage has the version-number appended and change uEnv.txt on install
for naming-issue you mean the file of deb/tar.gz? or inside the file?
inside. because deb is simplier way to install and tar.gz file need to be unpacked manually to corresponding folders. don’t know for which reason this is because system have mounted boot and root folders - why not make same structure in tar.gz file… or may be some script with these BPI2-BOOT BPI2-ROOT folders that rename files/folders to some old…
not all systems have boot-partition mounted in /boot, so i have separated this in tar.gz-file, there are only 2 commands to unpack the tar.gz-file. tar.gz-file is designed to be installed in running system, but outside where root/boot are mounted anywhere. deb is designed to be installed in running system, so it points to / and /boot instead of BPI-BOOT/BPI-ROOT
sudo tar -xzf ${kernelpack} -C / --strip-components=1 BPI-ROOT
sudo tar -xzf ${kernelpack} -C /boot/ --strip-components=1 BPI-BOOT
just fork my repo and do changes you think and i take a look over it…
btw. this discussion is more kernel-related and should be placed in a new thread…
There are 2 files there: BPI-R2-preloader-DDR1600-20190722-2k.img.gz and
BPI-R2-EMMC-boot0-DDR1600-20190722-0k.img.gz which were commited to the repository 21 days ago.