Skip to content

Commit e45eac1

Browse files
diederikdehaasMausy5043
authored andcommitted
Add HWRNG kernel module back and explicitly load the module. (#479)
It was built-in with kernel 4.4, but with 4.9 it is once again built as a kernel module (like it was before 4.4).
1 parent 55e2963 commit e45eac1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ KERNEL_VERSION_RPI2=4.9.0-2-rpi2
77

88
INSTALL_MODULES="kernel/fs/btrfs/btrfs.ko"
99
INSTALL_MODULES="$INSTALL_MODULES kernel/drivers/scsi/sg.ko"
10+
INSTALL_MODULES="$INSTALL_MODULES kernel/drivers/char/hw_random/bcm2835-rng.ko"
1011
INSTALL_MODULES="$INSTALL_MODULES kernel/net/ipv6/ipv6.ko"
1112

1213
# checks if first parameter is contained in the array passed as the second parameter

scripts/etc/init.d/rcS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,7 @@ echo "https://github.com/debian-pi/raspbian-ua-netinst/"
212212
echo "================================================="
213213

214214
echo -n "Starting HWRNG "
215+
modprobe bcm2835-rng
215216
/usr/sbin/rngd -r /dev/hwrng
216217
if [ $? -eq 0 ]; then
217218
echo "succeeded!"

0 commit comments

Comments
 (0)