tftpboot: set phram erase block size to match hardware
this is needed for tftp boot with a jffs2 filesystem
This commit is contained in:
parent
6adab44fcf
commit
2f3b108ef1
3 changed files with 3 additions and 1 deletions
|
@ -45,6 +45,7 @@
|
||||||
flash = {
|
flash = {
|
||||||
address = "0xbc050000";
|
address = "0xbc050000";
|
||||||
size ="0xf80000";
|
size ="0xf80000";
|
||||||
|
eraseBlockSize = "65536";
|
||||||
};
|
};
|
||||||
rootDevice = "1f05";
|
rootDevice = "1f05";
|
||||||
|
|
||||||
|
|
|
@ -42,6 +42,7 @@
|
||||||
flash = {
|
flash = {
|
||||||
address = "0xbc050000";
|
address = "0xbc050000";
|
||||||
size = "0xfb0000";
|
size = "0xfb0000";
|
||||||
|
eraseBlockSize = "65536";
|
||||||
};
|
};
|
||||||
rootDevice = "1f05";
|
rootDevice = "1f05";
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ in {
|
||||||
rootfsStart=0x$(printf %x $((${cfg.loadAddress} + 0x100000 + $uimageSize)))
|
rootfsStart=0x$(printf %x $((${cfg.loadAddress} + 0x100000 + $uimageSize)))
|
||||||
rootfsBytes=$(($(stat -L -c %s ${config.outputs.rootfs}) + 0x100000 &(~0xfffff)))
|
rootfsBytes=$(($(stat -L -c %s ${config.outputs.rootfs}) + 0x100000 &(~0xfffff)))
|
||||||
rootfsMb=$(($rootfsBytes >> 20))
|
rootfsMb=$(($rootfsBytes >> 20))
|
||||||
cmd="mtdparts=phram0:''${rootfsMb}M(rootfs) phram.phram=phram0,''${rootfsStart},''${rootfsMb}Mi memmap=''${rootfsMb}M\$''${rootfsStart} root=1f00";
|
cmd="mtdparts=phram0:''${rootfsMb}M(rootfs) phram.phram=phram0,''${rootfsStart},''${rootfsMb}Mi,${config.hardware.flash.eraseBlockSize} memmap=''${rootfsMb}M\$''${rootfsStart} root=/dev/mtdblock0";
|
||||||
|
|
||||||
cat > $out << EOF
|
cat > $out << EOF
|
||||||
setenv serverip ${cfg.serverip}
|
setenv serverip ${cfg.serverip}
|
||||||
|
|
Loading…
Reference in a new issue