offensive-security / kali-arm-build-scripts

Kali Linux ARM build scripts
874 stars 374 forks source link

build kernel with DEVMEM_STRICT=n? #111

Closed hanetzer closed 6 years ago

hanetzer commented 6 years ago

My use case: I want to try to use dmidecode to grab the spd values for the ram on my chromebook (veyron-speedy) for use in u-boot, but due to the named config value being set to y it won't work. Would be a simple change, and I think others may have use for this in REing some bits of the chromebook.

steev commented 6 years ago

We will not do that by default, but you're more than welcome to modify the config yourself and build an image. That's what the scripts are here for :)

hanetzer commented 6 years ago

@steev would gladly, but apparently even installing debootstrap on my gentoo system is not enough to allow this to work, since they call it with some kali specific parameters which config files I don't have.

steev commented 6 years ago

The only change you should have to make is to create a symlink in /usr/share/debootstrap/scripts

Specifically create one called kali-rolling and symlink it to /usr/share/debootstrap/scripts/sid

I do this on my gentoo system all the time (I'm not just a kali dev, I'm also a gentoo dev) - the other change would be to rename the qemu binary to the gentoo binary name - qemu-arm-static instead of qemu-static-arm.

hanetzer commented 6 years ago

Ah, thanks for that. Yeah, I've noticed that as well, cool I should be fine now. Quick question: the resultant image just requires dev mode turned on and usb boot enabled for the chromebook in question?

steev commented 6 years ago

Yep, that'll take about 15 minutes or so as switching to dev mode wipes the system of anything you have installed.

hanetzer commented 6 years ago

Aware, its already in dev mode (kinda; its bricked atm because I'm working on u-boot for it so I can hopefully avoid some of the more arcane chromeos stuffs, but once I reflash the stock coreboot its already in dev mode), thanks for the info.