km4ack / 73Linux

72 stars 17 forks source link

32/64 bit issue detection is off #40

Closed SpudGunMan closed 3 months ago

SpudGunMan commented 10 months ago

the output of the following command has changed with core rasp-foundation kernel

https://github.com/km4ack/73Linux/blob/e12575554f0d73eebf547523e842b2efe51d6c54/bin/set-enviroment.sh#L20

a monitor for op-mode could be used add to cpu variables etc the following..

opmode=$(sed -n 's/^CPU op-mode(s): //p' /tmp/bap-env-lscpu)

and down on section for aarch64) add

        #if the op-mode is missing we assume 32bit
        if [ -z "$opmode" ]; then
            CPU=32
        else
            CPU=64
        fi