@jean I think that might be the most visually appealing one, if you donât count the much shorter again FlĂ„msbanen/FlĂ„msbana ~1h. There are five main lines in Norway, SĂžrlandsbanen (Oslo-Stavanger), Bergensbanen (Oslo-Bergen), Dovrebanen (Oslo-Trondheim), RĂžrosbanen (also Oslo-Trondheim), and Nordlandsbanen (Trondheim-BodĂž).
You could take a train from BodĂž, change trains in Trondheim, then change again in Oslo, and go to Bergen, (or Stavanger), and that would take about 24h i believe, and with a short stop for re-boarding at the line ends. (Or the opposite direction).
Here is an extensive (but hard to read) list of all railway lines in Norway. When I grew up in TrĂžndelag, our house were a stone throw away from the Hell-Storlien(Sweden) line.