RetroBSD
http://retrobsd.org/

v384 sdcard and swap sizes wrong
http://retrobsd.org/viewtopic.php?f=7&t=37299
Page 1 of 1

Author:  Pito [ Mon Sep 28, 2015 6:06 am ]
Post subject:  v384 sdcard and swap sizes wrong

fub 384 auto>
Code:
adc: 15 channels
pwm: 5 channels
sd0: type SDHC, size 1936128 kbytes, speed 13 Mbit/sec             <<<< ??
sd0a: partition type b7, sector 2, size 102400 kbytes
sd0b: partition type b8, sector 204802, size 2048 kbytes
sd0c: partition type b7, sector 208898, size 102400 kbytes
phys mem  = 128 kbytes
user mem  = 96 kbytes
root dev  = (0,1)
swap dev  = (0,2)
root size = 102400 kbytes
swap size = 4096 kbytes                                            <<<< ??
/dev/sd0a: 1322 files, 13590 used, 88409 free
Starting daemons: update cron

It seems the sdcard size is half and the swap double of I would expect.

Author:  vak [ Mon Sep 28, 2015 6:41 am ]
Post subject:  Re: v384 sdcard and swap sizes wrong

Wow, seems like it's my bug: incorrect computation of partition size in recently modified SD driver.
I'll take a look.

Author:  vak [ Mon Sep 28, 2015 6:52 am ]
Post subject:  Re: v384 sdcard and swap sizes wrong

Fixed in next revision: the size of partition has been computed in sectors, not in kilobytes.
Thank you, Pito, for report.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/